diff --git a/ceph-host-move-to-root b/ceph-host-move-to-root old mode 100644 new mode 100755 diff --git a/ceph-mgr-create b/ceph-mgr-create new file mode 100755 index 0000000..9a7492b --- /dev/null +++ b/ceph-mgr-create @@ -0,0 +1,20 @@ +#!/bin/sh + +name=$(hostname) + +CEPH_PATH=/var/lib/ceph +MGR_PATH=$CEPH_PATH/mgr/ceph-$name + +if [ -e "$MGR_PATH" ]; then + echo "$MGR_PATH exists - aborting" + exit 1 +fi + +mkdir "$MGR_PATH" +chown ceph:ceph "$MGR_PATH" +touch "$MGR_PATH/sysvinit" + +ceph auth get-or-create mgr.$name \ + mon 'allow profile mgr' \ + osd 'allow *' \ + mds 'allow *' > "$MGR_PATH/keyring"