]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
common/options: add FLAG_MINIMAL_CONF
authorSage Weil <sage@redhat.com>
Fri, 11 Jan 2019 15:00:05 +0000 (09:00 -0600)
committerSage Weil <sage@redhat.com>
Fri, 11 Jan 2019 15:10:42 +0000 (09:10 -0600)
Mark a few auth options that would go in ceph.conf.

Signed-off-by: Sage Weil <sage@redhat.com>
src/common/options.cc
src/common/options.h

index 1b9d69c0a20b7a634aec06f4a27840fe873f1f17..48583ad4bc033135bed66a84868d2dad012c69a3 100644 (file)
@@ -1998,19 +1998,20 @@ std::vector<Option> get_global_options() {
 
     Option("auth_cluster_required", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_default("cephx")
-    .set_description(""),
+    .set_description("authentication methods required by the cluster"),
 
     Option("auth_service_required", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_default("cephx")
-    .set_description(""),
+    .set_description("authentication methods required by service daemons"),
 
     Option("auth_client_required", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_default("cephx, none")
-    .set_description(""),
+    .set_flag(Option::FLAG_MINIMAL_CONF)
+    .set_description("authentication methods allowed by clients"),
 
     Option("auth_supported", Option::TYPE_STR, Option::LEVEL_ADVANCED)
     .set_default("")
-    .set_description(""),
+    .set_description("authentication methods required (deprecated)"),
 
     Option("max_rotating_auth_attempts", Option::TYPE_INT, Option::LEVEL_ADVANCED)
     .set_default(10)
index 60b5fd7ac35fd6a63a98aca90390c0d833b0200a..3f1cc4c94652b2ea4fa201e1118206028f524342 100644 (file)
@@ -117,6 +117,7 @@ struct Option {
     FLAG_CLUSTER_CREATE = 0x8,  ///< option only has effect at cluster creation
     FLAG_CREATE = 0x10,         ///< option only has effect at daemon creation
     FLAG_MGR = 0x20,            ///< option is a mgr module option
+    FLAG_MINIMAL_CONF = 0x40,   ///< option should go in a minimal ceph.conf
   };
 
   struct size_t {