From: Zac Dover Date: Mon, 29 Aug 2022 00:39:51 +0000 (+1000) Subject: doc/mgr: update prompts in dboard.rst includes X-Git-Tag: v17.2.4~62^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F47869%2Fhead;p=ceph.git doc/mgr: update prompts in dboard.rst includes This PR adds unselectable prompts to three files that are transcluded in the doc/mgr/dashboard.rst file. These three files are: 1. debug.inc.rst 2. feature_toggles.inc.rst 3. motd.inc.rst The addition of unselectable prompts to these three files completes the work begun in PR#47810 (d8064b4), which sought to bring dashboard.rst into line with the unselectable prompt standard introduced by Kefu Chai in 2020. Signed-off-by: Zac Dover (cherry picked from commit fc70ccde758cb1f7c03f208115b88a4ef325aed7) --- diff --git a/doc/mgr/dashboard_plugins/debug.inc.rst b/doc/mgr/dashboard_plugins/debug.inc.rst index e11137cd258d..883419cbf57c 100644 --- a/doc/mgr/dashboard_plugins/debug.inc.rst +++ b/doc/mgr/dashboard_plugins/debug.inc.rst @@ -4,13 +4,30 @@ Debug ^^^^^ This plugin allows to customize the behaviour of the dashboard according to the -debug mode. It can be enabled, disabled or checked with the following command:: +debug mode. It can be enabled, disabled or checked with the following command: + +.. prompt:: bash $ + + ceph dashboard debug status + +:: - $ ceph dashboard debug status Debug: 'disabled' - $ ceph dashboard debug enable + +.. prompt:: bash $ + + ceph dashboard debug enable + +:: + Debug: 'enabled' - $ ceph dashboard debug disable + +.. prompt:: bash $ + + ceph dashboard debug disable + +:: + Debug: 'disabled' By default, it's disabled. This is the recommended setting for production diff --git a/doc/mgr/dashboard_plugins/feature_toggles.inc.rst b/doc/mgr/dashboard_plugins/feature_toggles.inc.rst index 5153e7092c80..7c96b0faaaf5 100644 --- a/doc/mgr/dashboard_plugins/feature_toggles.inc.rst +++ b/doc/mgr/dashboard_plugins/feature_toggles.inc.rst @@ -25,9 +25,14 @@ The list of features that can be enabled/disabled is: By default all features come enabled. -To retrieve a list of features and their current statuses:: +To retrieve a list of features and their current statuses: + +.. prompt:: bash $ + + ceph dashboard feature status + +:: - $ ceph dashboard feature status Feature 'cephfs': 'enabled' Feature 'iscsi': 'enabled' Feature 'mirroring': 'enabled' @@ -35,9 +40,14 @@ To retrieve a list of features and their current statuses:: Feature 'rgw': 'enabled' Feature 'nfs': 'enabled' -To enable or disable the status of a single or multiple features:: +To enable or disable the status of a single or multiple features: + +.. prompt:: bash $ + + ceph dashboard feature disable iscsi mirroring + +:: - $ ceph dashboard feature disable iscsi mirroring Feature 'iscsi': disabled Feature 'mirroring': disabled diff --git a/doc/mgr/dashboard_plugins/motd.inc.rst b/doc/mgr/dashboard_plugins/motd.inc.rst index b8464e1f33a0..0f9cc199a973 100644 --- a/doc/mgr/dashboard_plugins/motd.inc.rst +++ b/doc/mgr/dashboard_plugins/motd.inc.rst @@ -12,17 +12,23 @@ syntax to specify the expiration time: `Ns|m|h|d|w` for seconds, minutes, hours, days and weeks. If the MOTD should expire after 2 hours, use `2h` or `5w` for 5 weeks. Use `0` to configure a MOTD that does not expire. -To configure a MOTD, run the following command:: +To configure a MOTD, run the following command: - $ ceph dashboard motd set +.. prompt:: bash $ -To show the configured MOTD:: + ceph dashboard motd set - $ ceph dashboard motd get +To show the configured MOTD: -To clear the configured MOTD run:: +.. prompt:: bash $ - $ ceph dashboard motd clear + ceph dashboard motd get + +To clear the configured MOTD run: + +.. prompt:: bash $ + + ceph dashboard motd clear A MOTD with a `info` or `warning` severity can be closed by the user. The `info` MOTD is not displayed anymore until the local storage cookies are