ungleich-tools/ceph/ceph-keyring-create-initial

19 lines
396 B
Text
Raw Normal View History

#!/bin/sh
2018-02-15 22:08:24 +00:00
# Creates the initial keys
2018-02-15 22:11:29 +00:00
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 mgr 'allow *' \
2018-02-18 20:48:29 +00:00
--cap mds 'allow *'