From d0ed1b50d7db892a848a981f9162fa59e5cc3d97 Mon Sep 17 00:00:00 2001 From: Nico Schottelius Date: Thu, 15 Feb 2018 23:59:55 +0100 Subject: [PATCH] Add ceph-mgr-create --- ceph-host-move-to-root | 0 ceph-mgr-create | 20 ++++++++++++++++++++ 2 files changed, 20 insertions(+) mode change 100644 => 100755 ceph-host-move-to-root create mode 100755 ceph-mgr-create 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"