ungleich-tools/ceph/ceph-keyring-create-initial
2020-12-12 13:27:49 +01:00

18 lines
396 B
Bash
Executable file

#!/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 mgr 'allow *' \
--cap mds 'allow *'