]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
config: Add a per-name default keyring to front of keyring search path.
authorTommi Virtanen <tv@inktank.com>
Thu, 30 Aug 2012 14:21:29 +0000 (10:21 -0400)
committerTommi Virtanen <tv@inktank.com>
Wed, 5 Sep 2012 18:28:04 +0000 (11:28 -0700)
This lets us have e.g. /etc/ceph/ceph.client.admin.keyring that is
owned by root:admin and mode u=rw,g=r,o= without making every non-root
run of the command line tools complain and fail.

This is what the Chef cookbook has been doing for a while already.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
src/common/config_opts.h

index a943584804cd7cb3d7fce9efeaee2f9edee7afc5..c6dccaa3332e31e5107182100d40fee741809a97 100644 (file)
@@ -85,7 +85,7 @@ SUBSYS(throttle, 1, 5)
 
 OPTION(key, OPT_STR, "")
 OPTION(keyfile, OPT_STR, "")
-OPTION(keyring, OPT_STR, "/etc/ceph/$cluster.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin")
+OPTION(keyring, OPT_STR, "/etc/ceph/$cluster.$name.keyring,/etc/ceph/$cluster.keyring,/etc/ceph/keyring,/etc/ceph/keyring.bin")
 OPTION(heartbeat_interval, OPT_INT, 5)
 OPTION(heartbeat_file, OPT_STR, "")
 OPTION(ms_tcp_nodelay, OPT_BOOL, true)