summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSage Weil <sage@inktank.com>2013-02-12 16:26:14 -0800
committerSage Weil <sage@inktank.com>2013-02-13 12:30:22 -0800
commit809143f16c70483ba5bb429dea812d31b67f2b49 (patch)
tree7fb0a0574a48cbad3af18d9a215e02ae4b9cfbc5
parent4698b6a1035dee8509ce2d4dab7b34a16b78f7cd (diff)
downloadceph-809143f16c70483ba5bb429dea812d31b67f2b49.tar.gz
ceph-create-keys: create mds bootstrap key
Signed-off-by: Sage Weil <sage@inktank.com>
-rwxr-xr-xsrc/ceph-create-keys12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/ceph-create-keys b/src/ceph-create-keys
index 438e51d3076..272bb3ec6ef 100755
--- a/src/ceph-create-keys
+++ b/src/ceph-create-keys
@@ -190,6 +190,7 @@ def main():
wait_for_quorum(cluster=args.cluster, mon_id=args.id)
get_key(cluster=args.cluster, mon_id=args.id)
+
bootstrap_key(
cluster=args.cluster,
type_='osd',
@@ -203,6 +204,17 @@ def main():
),
)
+ bootstrap_key(
+ cluster=args.cluster,
+ type_='mds',
+ caps=dict(
+ mon=[
+ r'allow command auth get-or-create * osd allow\ * mds allow mon allow\ rwx',
+ 'allow command mon getmap',
+ ],
+ ),
+ )
+
if __name__ == '__main__':
main()