ungleich-tools/ceph-monitor-bootstrap
2018-02-15 23:08:24 +01:00

14 lines
379 B
Bash
Executable file

#!/bin/sh
# Creates the initial keys
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 $(hostname) --keyring /tmp/monkey
touch /var/lib/ceph/mon/ceph-server3/