Libvirt: Move ceph config to remain on host
Change-Id: If525389191b82dc7fb10cd2941bbe48fb0bbdb3c Signed-off-by: Pete Birley <pete@port.direct>
This commit is contained in:
parent
045e64067b
commit
d3c3c35365
@ -19,6 +19,8 @@ limitations under the License.
|
|||||||
set -ex
|
set -ex
|
||||||
export HOME=/tmp
|
export HOME=/tmp
|
||||||
|
|
||||||
|
cp -fv /etc/ceph/ceph.conf.template /etc/ceph/ceph.conf
|
||||||
|
|
||||||
KEYRING=/etc/ceph/ceph.client.${CEPH_CINDER_USER}.keyring
|
KEYRING=/etc/ceph/ceph.client.${CEPH_CINDER_USER}.keyring
|
||||||
{{- if .Values.conf.ceph.cinder.keyring }}
|
{{- if .Values.conf.ceph.cinder.keyring }}
|
||||||
cat > ${KEYRING} <<EOF
|
cat > ${KEYRING} <<EOF
|
||||||
|
@ -100,7 +100,7 @@ spec:
|
|||||||
subPath: ceph-keyring.sh
|
subPath: ceph-keyring.sh
|
||||||
readOnly: true
|
readOnly: true
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
mountPath: /etc/ceph/ceph.conf
|
mountPath: /etc/ceph/ceph.conf.template
|
||||||
subPath: ceph.conf
|
subPath: ceph.conf
|
||||||
readOnly: true
|
readOnly: true
|
||||||
{{- end }}
|
{{- end }}
|
||||||
@ -174,10 +174,9 @@ spec:
|
|||||||
{{- if .Values.conf.ceph.enabled }}
|
{{- if .Values.conf.ceph.enabled }}
|
||||||
- name: etcceph
|
- name: etcceph
|
||||||
mountPath: /etc/ceph
|
mountPath: /etc/ceph
|
||||||
- name: ceph-etc
|
{{- if or ( gt .Capabilities.KubeVersion.Major "1" ) ( ge .Capabilities.KubeVersion.Minor "10" ) }}
|
||||||
mountPath: /etc/ceph/ceph.conf
|
mountPropagation: Bidirectional
|
||||||
subPath: ceph.conf
|
{{- end }}
|
||||||
readOnly: true
|
|
||||||
{{- if empty .Values.conf.ceph.cinder.keyring }}
|
{{- if empty .Values.conf.ceph.cinder.keyring }}
|
||||||
- name: ceph-keyring
|
- name: ceph-keyring
|
||||||
mountPath: /tmp/client-keyring
|
mountPath: /tmp/client-keyring
|
||||||
@ -197,7 +196,8 @@ spec:
|
|||||||
defaultMode: 0444
|
defaultMode: 0444
|
||||||
{{- if .Values.conf.ceph.enabled }}
|
{{- if .Values.conf.ceph.enabled }}
|
||||||
- name: etcceph
|
- name: etcceph
|
||||||
emptyDir: {}
|
hostPath:
|
||||||
|
path: /var/lib/openstack-helm/compute/libvirt
|
||||||
- name: ceph-etc
|
- name: ceph-etc
|
||||||
configMap:
|
configMap:
|
||||||
name: {{ .Values.ceph_client.configmap }}
|
name: {{ .Values.ceph_client.configmap }}
|
||||||
|
Loading…
Reference in New Issue
Block a user