Skip to content

Commit

Permalink
common/options: flag misc options STARTUP
Browse files Browse the repository at this point in the history
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 0c944c0)
  • Loading branch information
liewegas committed Apr 26, 2019
1 parent d4f0dd8 commit 01a74a7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/common/options.cc
Expand Up @@ -747,6 +747,7 @@ std::vector<Option> get_global_options() {

Option("plugin_dir", Option::TYPE_STR, Option::LEVEL_ADVANCED)
.set_default(CEPH_PKGLIBDIR)
.set_flag(Option::FLAG_STARTUP)
.add_service({"mon", "osd"})
.set_description("Base directory for dynamically loaded plugins"),

Expand Down Expand Up @@ -833,6 +834,7 @@ std::vector<Option> get_global_options() {
.set_default("")
.set_description("Authentication key")
.set_long_description("A CephX authentication key, base64 encoded. It normally looks something like 'AQAtut9ZdMbNJBAAHz6yBAWyJyz2yYRyeMWDag=='.")
.set_flag(Option::FLAG_STARTUP)
.set_flag(Option::FLAG_NO_MON_UPDATE)
.add_see_also("keyfile")
.add_see_also("keyring"),
Expand All @@ -841,6 +843,7 @@ std::vector<Option> get_global_options() {
.set_default("")
.set_description("Path to a file containing a key")
.set_long_description("The file should contain a CephX authentication key and optionally a trailing newline, but nothing else.")
.set_flag(Option::FLAG_STARTUP)
.set_flag(Option::FLAG_NO_MON_UPDATE)
.add_see_also("key"),

Expand All @@ -856,16 +859,19 @@ std::vector<Option> get_global_options() {
)
.set_description("Path to a keyring file.")
.set_long_description("A keyring file is an INI-style formatted file where the section names are client or daemon names (e.g., 'osd.0') and each section contains a 'key' property with CephX authentication key as the value.")
.set_flag(Option::FLAG_STARTUP)
.set_flag(Option::FLAG_NO_MON_UPDATE)
.add_see_also("key")
.add_see_also("keyfile"),

Option("heartbeat_interval", Option::TYPE_INT, Option::LEVEL_ADVANCED)
.set_default(5)
.set_flag(Option::FLAG_STARTUP)
.set_description("Frequency of internal heartbeat checks (seconds)"),

Option("heartbeat_file", Option::TYPE_STR, Option::LEVEL_ADVANCED)
.set_default("")
.set_flag(Option::FLAG_STARTUP)
.set_description("File to touch on successful internal heartbeat")
.set_long_description("If set, this file will be touched every time an internal heartbeat check succeeds.")
.add_see_also("heartbeat_interval"),
Expand Down

0 comments on commit 01a74a7

Please sign in to comment.