]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
upstart, ceph-create-keys: Make client.admin key generation automatic.
authorTommi Virtanen <tv@inktank.com>
Thu, 30 Aug 2012 14:16:52 +0000 (10:16 -0400)
committerTommi Virtanen <tv@inktank.com>
Wed, 5 Sep 2012 18:28:04 +0000 (11:28 -0700)
commit787a78e8b1d8e5d92ee447b970ec8b79baa46f0b
tree6b8e34e9dbe89c4c402ae1bf5b0c58b44ac7d794
parent66aecb1e410a59f3e0ed89a30212b8dc546a3d4a
upstart, ceph-create-keys: Make client.admin key generation automatic.

This should help simplify Chef etc deployments. Now (when using the
Upstart jobs), when a ceph-mon is started, ceph-create-admin-key is
triggered. If /etc/ceph/$cluster.client.admin.keyring already exists,
it does nothing; otherwise, it waits for ceph-mon to reach quorum, and
then does a "ceph auth get-or-create" to create the key, and writes it
atomically to disk.

The equivalent code can be removed from the Chef cookbook once this is
in.

Signed-off-by: Tommi Virtanen <tv@inktank.com>
ceph.spec.in
debian/ceph.install
src/Makefile.am
src/ceph-create-keys [new file with mode: 0755]
src/upstart/ceph-create-keys.conf [new file with mode: 0644]