diff --git a/docker/services/mistral-executor.yaml b/docker/services/mistral-executor.yaml index 00eca9f8e4..6fac92908e 100644 --- a/docker/services/mistral-executor.yaml +++ b/docker/services/mistral-executor.yaml @@ -56,9 +56,16 @@ parameters: default: '' description: Configuration file for Undercloud, needed by TripleO Validations. type: string + ContainerCli: + type: string + default: 'docker' + description: CLI tool used to manage containers. + constraints: + - allowed_values: ['docker', 'podman'] conditions: undercloud_config_file_path_unset: {equals : [{get_param: UndercloudConfigFilePath}, '']} + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: @@ -104,7 +111,12 @@ outputs: - {get_attr: [MySQLClient, role_data, step_config]} config_image: {get_param: DockerMistralConfigImage} volumes: - - /var/run/docker.sock:/var/run/docker.sock:rw + list_concat: + - + if: + - docker_enabled + - - /var/run/docker.sock:/var/run/docker.sock:rw + - null kolla_config: /var/lib/kolla/config_files/mistral_executor.json: command: /usr/bin/mistral-server --config-file=/etc/mistral/mistral.conf --log-file=/var/log/mistral/executor.log --server=executor diff --git a/docker/services/sensu-client.yaml b/docker/services/sensu-client.yaml index e65fc90a37..36a099752f 100644 --- a/docker/services/sensu-client.yaml +++ b/docker/services/sensu-client.yaml @@ -68,7 +68,15 @@ parameters: type: number description: The number of seconds sensu-plugin-aware handlers should wait before taking second action. default: 90 + ContainerCli: + type: string + default: 'docker' + description: CLI tool used to manage containers. + constraints: + - allowed_values: ['docker', 'podman'] +conditions: + docker_enabled: {equals: [{get_param: ContainerCli}, 'docker']} resources: ContainersCommon: @@ -145,10 +153,13 @@ outputs: list_concat: - {get_attr: [ContainersCommon, volumes]} - - - /var/run/docker.sock:/var/run/docker.sock:rw - - /var/lib/kolla/config_files/sensu-client.json:/var/lib/kolla/config_files/config.json:ro - - /var/lib/config-data/puppet-generated/sensu/:/var/lib/kolla/config_files/src:ro - - /var/log/containers/sensu:/var/log/sensu:rw + if: + - docker_enabled + - - /var/run/docker.sock:/var/run/docker.sock:rw + - null + - /var/lib/kolla/config_files/sensu-client.json:/var/lib/kolla/config_files/config.json:ro + - /var/lib/config-data/puppet-generated/sensu/:/var/lib/kolla/config_files/src:ro + - /var/log/containers/sensu:/var/log/sensu:rw environment: - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS host_prep_tasks: