From d3c3c35365016854575fadb085a67752ac9d13ee Mon Sep 17 00:00:00 2001 From: Pete Birley Date: Fri, 8 Feb 2019 16:05:43 -0600 Subject: [PATCH] Libvirt: Move ceph config to remain on host Change-Id: If525389191b82dc7fb10cd2941bbe48fb0bbdb3c Signed-off-by: Pete Birley --- libvirt/templates/bin/_ceph-keyring.sh.tpl | 2 ++ libvirt/templates/daemonset-libvirt.yaml | 12 ++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/libvirt/templates/bin/_ceph-keyring.sh.tpl b/libvirt/templates/bin/_ceph-keyring.sh.tpl index d7007d566..02a382c3b 100644 --- a/libvirt/templates/bin/_ceph-keyring.sh.tpl +++ b/libvirt/templates/bin/_ceph-keyring.sh.tpl @@ -19,6 +19,8 @@ limitations under the License. set -ex export HOME=/tmp +cp -fv /etc/ceph/ceph.conf.template /etc/ceph/ceph.conf + KEYRING=/etc/ceph/ceph.client.${CEPH_CINDER_USER}.keyring {{- if .Values.conf.ceph.cinder.keyring }} cat > ${KEYRING} <