From bcc644593c284afa04a9fc0e9470c0073f36737c Mon Sep 17 00:00:00 2001 From: Willem Jan Withagen Date: Thu, 27 Apr 2017 15:58:36 +0200 Subject: [PATCH] common/config_opts.h: Allow for /usr/local/etc/ceph to hold keyrings Signed-off-by: Willem Jan Withagen --- src/common/config_opts.h | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/common/config_opts.h b/src/common/config_opts.h index 0f88ad3339d4a..afbd70d645a0f 100644 --- a/src/common/config_opts.h +++ b/src/common/config_opts.h @@ -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 -- 2.39.5