mirror of
https://github.com/ceph/ceph
synced 2025-02-24 03:27:10 +00:00
doc: fix config metavariables discussion
Signed-off-by: Sage Weil <sage@inktank.com>
This commit is contained in:
parent
d1054df6be
commit
5ceb7c734a
@ -39,14 +39,14 @@ A sample configuration file can be found in src/sample.ceph.conf.
|
|||||||
Metavariables
|
Metavariables
|
||||||
=============
|
=============
|
||||||
|
|
||||||
The configuration system supports certain "metavariables." If these occur
|
The configuration system allows any configuration value to be
|
||||||
inside a configuration value, they are expanded into something else-- similar to
|
substituted into another value using the ``$varname`` syntax, similar
|
||||||
how bash shell expansion works.
|
to how bash shell expansion works.
|
||||||
|
|
||||||
There are a few different metavariables:
|
A few additional special metavariables are also defined:
|
||||||
- $host: expands to the current hostname
|
- $host: expands to the current hostname
|
||||||
- $type: expands to one of "mds", "osd", or "mon"
|
- $type: expands to one of "mds", "osd", "mon", or "client"
|
||||||
- $id: expands to the daemon identifier. For osd.0, this would be "0"; for mds.a, it would be "a"
|
- $id: expands to the daemon identifier. For ``osd.0``, this would be ``0``; for ``mds.a``, it would be ``a``; for ``client.admin``, it would be ``admin``.
|
||||||
- $num: same as $id
|
- $num: same as $id
|
||||||
- $name: expands to $type.$id
|
- $name: expands to $type.$id
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user