]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
common/config_opts.h: Allow for /usr/local/etc/ceph to hold keyrings 14797/head
authorWillem Jan Withagen <wjw@digiware.nl>
Thu, 27 Apr 2017 13:58:36 +0000 (15:58 +0200)
committerWillem Jan Withagen <wjw@digiware.nl>
Thu, 27 Apr 2017 13:58:36 +0000 (15:58 +0200)
Signed-off-by: Willem Jan Withagen <wjw@digiware.nl>
src/common/config_opts.h

index 0f88ad3339d4a13c302f4e98f483a4671772ece9..afbd70d645a0f55103df3e55012987dae7c5f16f 100644 (file)
@@ -172,7 +172,14 @@ SUBSYS(eventtrace, 1, 5)
 
 OPTION(key, OPT_STR, "")
 OPTION(keyfile, OPT_STR, "")
-OPTION(keyring, OPT_STR, "/etc/ceph/$cluster.$name.keyring,/etc/ceph/$cluster.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin") // default changed by common_preinit() for mds and osd
+OPTION(keyring, OPT_STR, 
+    // default changed by common_preinit() for mds and osd
+    "/etc/ceph/$cluster.$name.keyring,/etc/ceph/$cluster.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin," 
+#if defined(__FreeBSD)
+    "/usr/local/etc/ceph/$cluster.$name.keyring,/usr/local/etc/ceph/$cluster.keyring,"
+    "/usr/local/etc/ceph/keyring,/usr/local/etc/ceph/keyring.bin," 
+#endif
+    )
 OPTION(heartbeat_interval, OPT_INT, 5)
 OPTION(heartbeat_file, OPT_STR, "")
 OPTION(heartbeat_inject_failure, OPT_INT, 0)    // force an unhealthy heartbeat for N seconds