2018-02-15 21:07:34 +00:00
|
|
|
#!/bin/sh
|
|
|
|
|
2018-02-15 22:08:24 +00:00
|
|
|
# Creates the initial keys
|
|
|
|
|
2018-02-15 21:07:34 +00:00
|
|
|
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!
|
2018-02-15 22:08:24 +00:00
|
|
|
ceph-mon --mkfs -i $(hostname) --keyring /tmp/monkey
|
|
|
|
touch /var/lib/ceph/mon/ceph-server3/
|