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 <zac.dover@gmail.com>
(cherry picked from commit
fc70ccde758cb1f7c03f208115b88a4ef325aed7)
^^^^^
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
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'
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
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 <severity:info|warning|danger> <expires> <message>
+.. prompt:: bash $
-To show the configured MOTD::
+ ceph dashboard motd set <severity:info|warning|danger> <expires> <message>
- $ 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