]> git-server-git.apps.pok.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>
Thu, 30 Aug 2012 14:25:07 +0000 (10:25 -0400)
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.

src/common/config_opts.h

index 292507e0a3f3731b7916f7b20ad744cd919f1c21..2ad3b0a23cadbae9021c4739f3f494c246f3a29b 100644 (file)
@@ -86,7 +86,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)