]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/hello: fully document our options
authorSage Weil <sage@redhat.com>
Mon, 5 Aug 2019 19:44:10 +0000 (14:44 -0500)
committerSage Weil <sage@redhat.com>
Mon, 5 Aug 2019 19:45:27 +0000 (14:45 -0500)
Signed-off-by: Sage Weil <sage@redhat.com>
src/pybind/mgr/hello/module.py

index 94d532ee70b7c34facdb9c37f1847e116372ecb2..323890b0a4ddfff5a64800772eddb7d41c0fb165 100644 (file)
@@ -20,18 +20,34 @@ class Hello(MgrModule):
         },
     ]
 
-    # these are module options we understand.  These can be set with
-    # 'ceph config set global mgr/hello/<name> <value>'.  e.g.,
-    # 'ceph config set global mgr/hello/place Earth'
+    # These are module options we understand.  These can be set with
+    #
+    #   ceph config set global mgr/hello/<name> <value>
+    #
+    # e.g.,
+    #
+    #   ceph config set global mgr/hello/place Earth
+    #
     MODULE_OPTIONS = [
         {
             'name': 'place',
             'default': 'world',
+            'desc': 'a place in the world',
+            'runtime': True,   # can be updated at runtime (no mgr restart)
         },
         {
             'name': 'emphatic',
             'type': 'bool',
+            'desc': 'whether to say it loudly',
             'default': True,
+            'runtime': True,
+        },
+        {
+            'name': 'foo',
+            'type': 'enum',
+            'enum_allowed': [ 'a', 'b', 'c' ],
+            'default': 'a',
+            'runtime': True,
         },
     ]