]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc/mgr: use confval directive to define options 41544/head
authorKefu Chai <kchai@redhat.com>
Wed, 26 May 2021 04:00:57 +0000 (12:00 +0800)
committerKefu Chai <kchai@redhat.com>
Thu, 27 May 2021 23:44:44 +0000 (07:44 +0800)
less repeating this way

Signed-off-by: Kefu Chai <kchai@redhat.com>
doc/mgr/administrator.rst
src/common/options/mgr.yaml.in

index cfe84af14b93856fb01f829b5ccefb4c20b824d4..422aa5da99104da8b0fb3887425b6ea322016159 100644 (file)
@@ -47,7 +47,7 @@ active by the monitors, and the others will be standbys.  There is
 no requirement for quorum among the ceph-mgr daemons.
 
 If the active daemon fails to send a beacon to the monitors for
-more than ``mon mgr beacon grace`` (default 30s), then it will be replaced
+more than :confval:`mon_mgr_beacon_grace`, then it will be replaced
 by a standby.
 
 If you want to pre-empt failover, you can explicitly mark a ceph-mgr
@@ -77,7 +77,7 @@ information about what functionality each module provides.
 
 Here is an example of enabling the :term:`Dashboard` module:
 
-::
+.. code-block:: console
 
        $ ceph mgr module ls
        {
@@ -109,14 +109,14 @@ Here is an example of enabling the :term:`Dashboard` module:
        }
 
 
-The first time the cluster starts, it uses the ``mgr_initial_modules``
+The first time the cluster starts, it uses the :confval:`mgr_initial_modules`
 setting to override which modules to enable.  However, this setting
 is ignored through the rest of the lifetime of the cluster: only
 use it for bootstrapping.  For example, before starting your
 monitor daemons for the first time, you might add a section like
 this to your ``ceph.conf``:
 
-::
+.. code-block:: ini
 
     [mon]
         mgr_initial_modules = dashboard balancer
@@ -134,29 +134,10 @@ the module.::
 Configuration
 -------------
 
-``mgr_module_path``
-
-:Description: Path to load modules from
-:Type: String
-:Default: ``"<library dir>/mgr"``
-
-``mgr_data``
-
-:Description: Path to load daemon data (such as keyring)
-:Type: String
-:Default: ``"/var/lib/ceph/mgr/$cluster-$id"``
-
-``mgr_tick_period``
-
-:Description: How many seconds between mgr beacons to monitors, and other
-              periodic checks.
-:Type: Integer
-:Default: ``5``
-
-``mon_mgr_beacon_grace``
-
-:Description: How long after last beacon should a mgr be considered failed
-:Type: Integer
-:Default: ``30``
+.. confval:: mgr_module_path
+.. confval:: mgr_initial_modules
+.. confval:: mgr_data
+.. confval:: mgr_tick_period
+.. confval:: mon_mgr_beacon_grace
 
 .. _Modifying User Capabilities: ../../rados/operations/user-management/#modify-user-capabilities
index 7a68905183d38e750798668c921a431e1d7a4aef..cabd21107467b3fbe3a87d5412a86655f4c38b33 100644 (file)
@@ -6,6 +6,7 @@ options:
   type: str
   level: advanced
   desc: Filesystem path to the ceph-mgr data directory, used to contain keyring.
+  fmt_desc: Path to load daemon data (such as keyring)
   default: /var/lib/ceph/mgr/$cluster-$id
   services:
   - mgr
@@ -89,6 +90,7 @@ options:
   type: str
   level: advanced
   desc: Filesystem path to manager modules.
+  fmt_desc: Path to load modules from
   default: @CEPH_INSTALL_DATADIR@/mgr
   services:
   - mgr
@@ -184,6 +186,8 @@ options:
   type: secs
   level: advanced
   desc: Period in seconds of beacon messages to monitor
+  fmt_desc: How many seconds between mgr beacons to monitors, and other
+    periodic checks.
   default: 2
   services:
   - mgr