From 61a5d3174e3f23ab60fed0c7421ebf5a4afa225a Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 15 Feb 2018 22:07:34 +0100 Subject: [PATCH] Begin by some notes about ceph monitors --- ceph-monitor-bootstrap | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 ceph-monitor-bootstrap diff --git a/ceph-monitor-bootstrap b/ceph-monitor-bootstrap new file mode 100644 index 0000000..446a14a --- /dev/null +++ b/ceph-monitor-bootstrap @@ -0,0 +1,11 @@ +#!/bin/sh + +fname=/tmp/monkey + +ceph-authtool --create-keyring "$fname" --gen-key -n mon. +ceph-authtool "$fname" --gen-key -n client.admin --set-uid=0 --cap mon 'allow *' --cap osd 'allow *' --cap mds 'allow' + +cat "$fname" + +# ensure mon has persistent storage! +ceph-mon --mkfs -i mon.$(hostname) --keyring /tmp/monkey