diff --git a/deployment/cinder/cinder-backup-pacemaker-puppet.yaml b/deployment/cinder/cinder-backup-pacemaker-puppet.yaml index 95db4a3707..3d5e110a05 100644 --- a/deployment/cinder/cinder-backup-pacemaker-puppet.yaml +++ b/deployment/cinder/cinder-backup-pacemaker-puppet.yaml @@ -77,6 +77,7 @@ parameters: conditions: puppet_debug_enabled: {get_param: ConfigDebug} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -199,8 +200,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/cinder/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null cinder_backup_init_bundle: start_order: 1 detach: false @@ -221,7 +225,10 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # NOTE: this should force this container to re-run on each # update (scale-out, etc.) diff --git a/deployment/cinder/cinder-volume-pacemaker-puppet.yaml b/deployment/cinder/cinder-volume-pacemaker-puppet.yaml index 755b0ce6fd..996f8b5c97 100644 --- a/deployment/cinder/cinder-volume-pacemaker-puppet.yaml +++ b/deployment/cinder/cinder-volume-pacemaker-puppet.yaml @@ -65,6 +65,7 @@ parameters: conditions: puppet_debug_enabled: {get_param: ConfigDebug} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -184,8 +185,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/cinder/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null cinder_volume_init_bundle: start_order: 1 detach: false @@ -206,7 +210,10 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # NOTE: this should force this container to re-run on each # update (scale-out, etc.) diff --git a/deployment/database/mysql-pacemaker-puppet.yaml b/deployment/database/mysql-pacemaker-puppet.yaml index 0c0bd370be..52bf5fbee6 100644 --- a/deployment/database/mysql-pacemaker-puppet.yaml +++ b/deployment/database/mysql-pacemaker-puppet.yaml @@ -97,6 +97,7 @@ resources: conditions: puppet_debug_enabled: {get_param: ConfigDebug} internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} outputs: role_data: @@ -283,8 +284,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/mysql/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null mysql_init_bundle: start_order: 1 detach: false @@ -305,9 +309,12 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - - /var/lib/mysql:/var/lib/mysql:rw,z + - - /var/lib/mysql:/var/lib/mysql:rw,z - /var/lib/config-data/puppet-generated/mysql/root:/root:rw + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # NOTE: this should force this container to re-run on each # update (scale-out, etc.) diff --git a/deployment/database/redis-pacemaker-puppet.yaml b/deployment/database/redis-pacemaker-puppet.yaml index fa426aa87e..5610ebbcb2 100644 --- a/deployment/database/redis-pacemaker-puppet.yaml +++ b/deployment/database/redis-pacemaker-puppet.yaml @@ -69,6 +69,7 @@ conditions: puppet_debug_enabled: {get_param: ConfigDebug} internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} redis_ipv6: {get_param: RedisIPv6} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -231,8 +232,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/redis/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null - redis_init_bundle: start_order: 2 detach: false @@ -254,7 +258,10 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # NOTE: this should force this container to re-run on each # update (scale-out, etc.) diff --git a/deployment/haproxy/haproxy-pacemaker-puppet.yaml b/deployment/haproxy/haproxy-pacemaker-puppet.yaml index 6fb6be07cc..18385945a9 100644 --- a/deployment/haproxy/haproxy-pacemaker-puppet.yaml +++ b/deployment/haproxy/haproxy-pacemaker-puppet.yaml @@ -114,6 +114,7 @@ conditions: - {get_param: PublicSSLCertificateAutogenerated} - true internal_tls_enabled: {equals: [{get_param: EnableInternalTLS}, true]} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -250,8 +251,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/haproxy/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null haproxy_init_bundle: start_order: 3 detach: false @@ -274,8 +278,10 @@ outputs: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - *deployed_cert_mount - - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # NOTE: this should force this container to re-run on each # update (scale-out, etc.) diff --git a/deployment/manila/manila-share-pacemaker-puppet.yaml b/deployment/manila/manila-share-pacemaker-puppet.yaml index 681f10d592..8c206ee365 100644 --- a/deployment/manila/manila-share-pacemaker-puppet.yaml +++ b/deployment/manila/manila-share-pacemaker-puppet.yaml @@ -60,6 +60,7 @@ parameters: conditions: puppet_debug_enabled: {get_param: ConfigDebug} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -165,8 +166,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/manila/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null manila_share_init_bundle: start_order: 1 detach: false @@ -187,7 +191,10 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # NOTE: this should force this container to re-run on each # update (scale-out, etc.) diff --git a/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml b/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml index 7223f4f717..902d10e7bd 100644 --- a/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml +++ b/deployment/ovn/ovn-dbs-pacemaker-puppet.yaml @@ -68,6 +68,7 @@ parameters: conditions: puppet_debug_enabled: {get_param: ConfigDebug} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -157,8 +158,10 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null ovn_dbs_init_bundle: start_order: 1 detach: false @@ -180,7 +183,10 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # NOTE: this should force this container to re-run on each # update (scale-out, etc.) diff --git a/deployment/rabbitmq/rabbitmq-messaging-notify-pacemaker-puppet.yaml b/deployment/rabbitmq/rabbitmq-messaging-notify-pacemaker-puppet.yaml index cd52f4225a..1b234b60f1 100644 --- a/deployment/rabbitmq/rabbitmq-messaging-notify-pacemaker-puppet.yaml +++ b/deployment/rabbitmq/rabbitmq-messaging-notify-pacemaker-puppet.yaml @@ -64,6 +64,7 @@ parameters: conditions: puppet_debug_enabled: {get_param: ConfigDebug} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -206,8 +207,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null rabbitmq_init_bundle: start_order: 1 detach: false @@ -228,8 +232,11 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - - /bin/true:/bin/epmd + - - /bin/true:/bin/epmd + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # https://launchpad.net/bugs/1822673 (lang/lc_all to utf-8 are an elixir requirement) - 'LANG=en_US.UTF-8' diff --git a/deployment/rabbitmq/rabbitmq-messaging-pacemaker-puppet.yaml b/deployment/rabbitmq/rabbitmq-messaging-pacemaker-puppet.yaml index 74d77b9d01..d3cd5d498a 100644 --- a/deployment/rabbitmq/rabbitmq-messaging-pacemaker-puppet.yaml +++ b/deployment/rabbitmq/rabbitmq-messaging-pacemaker-puppet.yaml @@ -64,6 +64,7 @@ parameters: conditions: puppet_debug_enabled: {get_param: ConfigDebug} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -206,8 +207,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null rabbitmq_init_bundle: start_order: 1 detach: false @@ -228,8 +232,11 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - - /bin/true:/bin/epmd + - - /bin/true:/bin/epmd + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # https://launchpad.net/bugs/1822673 (lang/lc_all to utf-8 are an elixir requirement) - 'LANG=en_US.UTF-8' diff --git a/deployment/rabbitmq/rabbitmq-messaging-rpc-pacemaker-puppet.yaml b/deployment/rabbitmq/rabbitmq-messaging-rpc-pacemaker-puppet.yaml index bd35bd8125..5045ddc6d6 100644 --- a/deployment/rabbitmq/rabbitmq-messaging-rpc-pacemaker-puppet.yaml +++ b/deployment/rabbitmq/rabbitmq-messaging-rpc-pacemaker-puppet.yaml @@ -64,6 +64,7 @@ parameters: conditions: puppet_debug_enabled: {get_param: ConfigDebug} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -206,8 +207,11 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - /var/lib/config-data/puppet-generated/rabbitmq/:/var/lib/kolla/config_files/src:ro + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null rabbitmq_init_bundle: start_order: 1 detach: false @@ -228,8 +232,11 @@ outputs: volumes: list_concat: - {get_attr: [ContainersCommon, container_puppet_apply_volumes]} - - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro - - /bin/true:/bin/epmd + - - /bin/true:/bin/epmd + - if: + - docker_enabled + - - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro + - null environment: # https://launchpad.net/bugs/1822673 (lang/lc_all to utf-8 are an elixir requirement) - 'LANG=en_US.UTF-8'