From e1c49aca567dbe2eede79fc5b093f7b9c37912c0 Mon Sep 17 00:00:00 2001 From: Egon Rijpkema Date: Wed, 20 Jun 2018 16:00:13 +0200 Subject: [PATCH] make ceph variable --- nova_compute/write_conf.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/nova_compute/write_conf.sh b/nova_compute/write_conf.sh index 30f1efa..f0baa3f 100755 --- a/nova_compute/write_conf.sh +++ b/nova_compute/write_conf.sh @@ -279,3 +279,21 @@ l2_population = True local_ip = $OVERLAY_IP EOF + +if [ $USE_CEPH = true ] + then cat << EOF > /etc/ceph/ceph.conf +[global] +fsid = $FSID +mon_initial_members = $MON_INITIAL_MEMBERS +mon_host = $MON_HOST +auth_cluster_required = cephx +auth_service_required = cephx +auth_client_required = cephx + +# Your network address +public network = $PUBLIC_NETWORK +osd pool default size = $OSD_POOL_DEFAULT_SIZE + +[client.compute] +keyring = /etc/ceph/ceph.client.compute.keyring +EOF