|
|
|
@ -89,17 +89,13 @@ parameters:
|
|
|
|
|
letters and numbers. |
|
|
|
|
|
|
|
|
|
conditions: |
|
|
|
|
|
|
|
|
|
cinder_iscsi_backend_enabled: {equals: [{get_param: CinderEnableIscsiBackend}, true]} |
|
|
|
|
multipathd_enabled: {equals: [{get_param: MultipathdEnable}, true]} |
|
|
|
|
cvol_active_active_tls_enabled: |
|
|
|
|
and: |
|
|
|
|
- not: {equals: [{get_param: CinderVolumeCluster}, '']} |
|
|
|
|
- equals: [{get_param: EnableInternalTLS}, true] |
|
|
|
|
- equals: [{get_param: EnableEtcdInternalTLS}, true] |
|
|
|
|
- {get_param: EnableInternalTLS} |
|
|
|
|
- {get_param: EnableEtcdInternalTLS} |
|
|
|
|
|
|
|
|
|
resources: |
|
|
|
|
|
|
|
|
|
ContainersCommon: |
|
|
|
|
type: ../containers-common.yaml |
|
|
|
|
|
|
|
|
@ -131,16 +127,12 @@ outputs:
|
|
|
|
|
value: &cinder_common_volumes |
|
|
|
|
list_concat: |
|
|
|
|
- {get_attr: [ContainersCommon, volumes]} |
|
|
|
|
- |
|
|
|
|
- /var/lib/config-data/puppet-generated/cinder:/var/lib/kolla/config_files/src:ro |
|
|
|
|
- - /var/lib/config-data/puppet-generated/cinder:/var/lib/kolla/config_files/src:ro |
|
|
|
|
- /var/log/containers/cinder:/var/log/cinder:z |
|
|
|
|
- |
|
|
|
|
if: |
|
|
|
|
- if: |
|
|
|
|
- cvol_active_active_tls_enabled |
|
|
|
|
- |
|
|
|
|
- /etc/pki/tls/certs/etcd.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/etcd.crt:ro |
|
|
|
|
- - /etc/pki/tls/certs/etcd.crt:/var/lib/kolla/config_files/src-tls/etc/pki/tls/certs/etcd.crt:ro |
|
|
|
|
- /etc/pki/tls/private/etcd.key:/var/lib/kolla/config_files/src-tls/etc/pki/tls/private/etcd.key:ro |
|
|
|
|
- [] |
|
|
|
|
|
|
|
|
|
cinder_common_kolla_config_files: |
|
|
|
|
description: Common kolla config_files for cinder-volume and cinder-backup services |
|
|
|
@ -190,7 +182,7 @@ outputs:
|
|
|
|
|
- |
|
|
|
|
- name: cinder_enable_iscsi_backend fact |
|
|
|
|
set_fact: |
|
|
|
|
cinder_enable_iscsi_backend: {if: [cinder_iscsi_backend_enabled, true, false]} |
|
|
|
|
cinder_enable_iscsi_backend: {get_param: CinderEnableIscsiBackend} |
|
|
|
|
- when: cinder_enable_iscsi_backend|bool |
|
|
|
|
block: |
|
|
|
|
- name: ensure LVM rpm dependencies are installed |
|
|
|
@ -266,8 +258,7 @@ outputs:
|
|
|
|
|
list_concat: |
|
|
|
|
- *cinder_common_volumes |
|
|
|
|
- {get_param: CinderVolumeOptVolumes} |
|
|
|
|
- |
|
|
|
|
- /var/lib/kolla/config_files/cinder_volume.json:/var/lib/kolla/config_files/config.json:ro |
|
|
|
|
- - /var/lib/kolla/config_files/cinder_volume.json:/var/lib/kolla/config_files/config.json:ro |
|
|
|
|
- /etc/iscsi:/var/lib/kolla/config_files/src-iscsid:ro |
|
|
|
|
- list_join: |
|
|
|
|
- ':' |
|
|
|
@ -280,17 +271,13 @@ outputs:
|
|
|
|
|
- /sys:/sys |
|
|
|
|
- /var/lib/cinder:/var/lib/cinder:z |
|
|
|
|
- /var/lib/iscsi:/var/lib/iscsi:z |
|
|
|
|
- |
|
|
|
|
if: |
|
|
|
|
- cinder_iscsi_backend_enabled |
|
|
|
|
- if: |
|
|
|
|
- {get_param: CinderEnableIscsiBackend} |
|
|
|
|
- - /etc/target:/etc/target:z |
|
|
|
|
- [] |
|
|
|
|
- |
|
|
|
|
if: |
|
|
|
|
- multipathd_enabled |
|
|
|
|
- if: |
|
|
|
|
- {get_param: MultipathdEnable} |
|
|
|
|
- - /etc/multipath:/etc/multipath:z |
|
|
|
|
- /etc/multipath.conf:/etc/multipath.conf:ro |
|
|
|
|
- [] |
|
|
|
|
|
|
|
|
|
cinder_volume_environment: |
|
|
|
|
description: Docker environment for the cinder-volume container (HA or non-HA) |
|
|
|
@ -323,11 +310,9 @@ outputs:
|
|
|
|
|
- /lib/modules:/lib/modules:ro |
|
|
|
|
- /var/lib/cinder:/var/lib/cinder:z |
|
|
|
|
- /var/lib/iscsi:/var/lib/iscsi:z |
|
|
|
|
- |
|
|
|
|
if: |
|
|
|
|
- multipathd_enabled |
|
|
|
|
- if: |
|
|
|
|
- {get_param: MultipathdEnable} |
|
|
|
|
- - /etc/multipath:/etc/multipath:z |
|
|
|
|
- [] |
|
|
|
|
|
|
|
|
|
cinder_backup_environment: |
|
|
|
|
description: Docker environment for the cinder-backup container (HA or non-HA) |
|
|
|
|