Add script to add host in default

This commit is contained in:
Nico Schottelius 2018-02-15 23:40:59 +01:00
commit aeeeb2ba7e
2 changed files with 4 additions and 0 deletions

13
ceph-keyring-create-initial Executable file
View file

@ -0,0 +1,13 @@
#!/bin/sh
# Creates the initial keys
if [ $# -ne 1 ]; then
echo "$0 initial-key-file"
exit 1
fi
fname=$1
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'