smallmds=0
short=0
ec=0
+ssh=0
hitset=""
overwrite_conf=1
cephx=1 #turn cephx on by default
usage=$usage"\t--osd-args: specify any extra osd specific options\n"
usage=$usage"\t--bluestore-devs: comma-separated list of blockdevs to use for bluestore\n"
usage=$usage"\t--inc-osd: append some more osds into existing vcluster\n"
+usage=$usage"\t--ssh: enable ssh orchestrator with ~/.ssh/id_rsa[.pub]\n"
usage_exit() {
printf "$usage"
--msgr21 )
msgr="21"
;;
+ --ssh )
+ ssh=1
+ ;;
--valgrind )
[ -z "$2" ] && usage_exit
valgrind=$2
echo MGR Restful is not working, perhaps the package is not installed?
fi
fi
+
+ if [ "$ssh" -eq 1 ]; then
+ echo Enabling ssh orchestrator
+ ceph_adm config-key set mgr/ssh/ssh_identity_key -i ~/.ssh/id_rsa
+ ceph_adm config-key set mgr/ssh/ssh_identity_pub -i ~/.ssh/id_rsa.pub
+ ceph_adm mgr module enable ssh
+ ceph_adm orchestrator set backend ssh
+ ceph_adm orchestrator host add $HOSTNAME
+ fi
}
start_mds() {