tripleo-heat-templates/deployment/logging/stdout/haproxy.yaml
ramishra c9991c2e31 Use 'wallaby' heat_template_version
With I57047682cfa82ba6ca4affff54fab5216e9ba51c Heat has added
a new template version for wallaby. This would allow us to use
2-argument variant of the ``if`` function that would allow for
 e.g. conditional definition of resource properties and help
cleanup templates. If only two arguments are passed to ``if``
function, the entire enclosing item is removed when the condition
is false.

Change-Id: I25f981b60c6a66b39919adc38c02a051b6c51269
2021-03-31 17:35:12 +05:30

38 lines
1.2 KiB
YAML

heat_template_version: wallaby
description: >
OpenStack containerized HAProxy API service
parameters:
ContainerRsyslogSidecarImage:
description: image
type: string
outputs:
config_settings:
description: Extra hieradata needed to log to stdout.
value:
tripleo::haproxy::haproxy_log_address: '/sockets/log'
docker_config:
description: Extra containers needed for logging to stdout or a sidecar container.
value:
step_1:
haproxy_logs:
start_order: 0
image: {get_param: ContainerRsyslogSidecarImage}
user: root
restart: always
volumes:
- /var/lib/kolla/config_files/rsyslog_sidecar.json:/var/lib/kolla/config_files/config.json:ro
- /var/lib/config-data/puppet-generated/rsyslog_sidecar:/var/lib/kolla/config_files/src:ro
- HAProxyLogs:/sockets/
environment:
KOLLA_CONFIG_STRATEGY: COPY_ALWAYS
volumes:
description: The volumes needed to log to stdout or a sidecar container.
value:
- HAProxyLogs:/sockets/
host_prep_tasks:
description: Extra ansible tasks needed for logging to files in the host.
value: null