From: Sage Weil Date: Thu, 12 Jul 2012 16:57:31 +0000 (-0700) Subject: doc: fix config metavariables discussion X-Git-Tag: v0.50~81 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=5ceb7c734af5a05c2e6a60e1f33a8b491cf25cca;p=ceph.git doc: fix config metavariables discussion Signed-off-by: Sage Weil --- diff --git a/doc/dev/config.rst b/doc/dev/config.rst index a4fdb49b169f..49eda359a4da 100644 --- a/doc/dev/config.rst +++ b/doc/dev/config.rst @@ -39,14 +39,14 @@ A sample configuration file can be found in src/sample.ceph.conf. Metavariables ============= -The configuration system supports certain "metavariables." If these occur -inside a configuration value, they are expanded into something else-- similar to -how bash shell expansion works. +The configuration system allows any configuration value to be +substituted into another value using the ``$varname`` syntax, similar +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 - - $type: expands to one of "mds", "osd", or "mon" - - $id: expands to the daemon identifier. For osd.0, this would be "0"; for mds.a, it would be "a" + - $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``; for ``client.admin``, it would be ``admin``. - $num: same as $id - $name: expands to $type.$id