]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
mon: implement --key for --mkfs 1010/head
authorLoic Dachary <loic@dachary.org>
Sun, 29 Dec 2013 11:57:45 +0000 (12:57 +0100)
committerLoic Dachary <loic@dachary.org>
Wed, 1 Jan 2014 10:07:42 +0000 (11:07 +0100)
commit4c8a313443f8713189b9139ffada978639363ebd
treefd122367cefa43001c2acc5a6ef50690a9ad0d6d
parentab6203f3f62a1c1a3619be307973e766ebac150c
mon: implement --key for --mkfs

Allow --key to be used as an alternative to --keyring when ceph-mon
--mkfs runs. The key is wrapped inline into

     [mon.]
key = AQDUS79S0AF9FRAA2cgRLFscVce0gROn/s9WMg==
caps mon = "allow *"

and parsed with KeyRing::decode_plaintext which is made public.

Signed-off-by: Loic Dachary <loic@dachary.org>
src/auth/KeyRing.h
src/mon/Monitor.cc