tripleo-heat-templates/deployment/logging/stdout/haproxy.yaml
Alex Schultz ebab335f38 Role specific container support
We may want to be able to specific different containers at a role level.
This requires switching the container image parameters to be role
specific too allow for role based overrides.

Change-Id: I4090e889a32abd51e7c11139737a7a18e27d18e7
2022-01-21 14:18:02 -07:00

58 lines
1.7 KiB
YAML

heat_template_version: wallaby
description: >
OpenStack containerized HAProxy API service
parameters:
RoleParameters:
default: {}
description: Parameters specific to the role
type: json
ContainerRsyslogSidecarImage:
description: image
type: string
tags:
- role_specific
resources:
RoleParametersValue:
type: OS::Heat::Value
properties:
type: json
value:
map_replace:
- map_replace:
- ContainerRsyslogSidecarImage: ContainerRsyslogSidecarImage
- values: {get_param: [RoleParameters]}
- values:
ContainerRsyslogSidecarImage: {get_param: ContainerRsyslogSidecarImage}
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_attr: [RoleParametersValue, value, 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