1 heat_template_version: pike
4 OpenStack containerized HAproxy service
9 default: 'tripleoupstream'
13 default: 'centos-binary-haproxy:latest'
15 DockerHAProxyConfigImage:
16 description: The container image to use for the haproxy config_volume
17 default: 'centos-binary-haproxy:latest'
21 description: Mapping of service_name -> network name. Typically set
22 via parameter_defaults in the resource registry. This
23 mapping overrides those in ServiceNetMapDefaults.
30 description: Mapping of service endpoint -> protocol. Typically set
31 via parameter_defaults in the resource registry.
34 description: Password for HAProxy stats endpoint
38 description: User for HAProxy stats endpoint
43 description: Syslog address where HAproxy will send its log
45 DeployedSSLCertificatePath:
46 default: '/etc/pki/tls/private/overcloud_endpoint.pem'
48 The filepath of the certificate as it will be stored in the controller.
51 description: The password for Redis
54 MonitoringSubscriptionHaproxy:
55 default: 'overcloud-haproxy'
59 description: Role name on which the service is applied
63 description: Parameters specific to the role
69 type: ./containers-common.yaml
72 type: ../../puppet/services/haproxy.yaml
74 EndpointMap: {get_param: EndpointMap}
75 ServiceNetMap: {get_param: ServiceNetMap}
76 DefaultPasswords: {get_param: DefaultPasswords}
77 RoleName: {get_param: RoleName}
78 RoleParameters: {get_param: RoleParameters}
82 description: Role data for the HAproxy role.
84 service_name: {get_attr: [HAProxyBase, role_data, service_name]}
87 - get_attr: [HAProxyBase, role_data, config_settings]
88 - tripleo::haproxy::haproxy_daemon: false
89 step_config: &step_config
90 get_attr: [HAProxyBase, role_data, step_config]
91 service_config_settings: {get_attr: [HAProxyBase, role_data, service_config_settings]}
92 # BEGIN DOCKER SETTINGS
94 config_volume: haproxy
95 puppet_tags: haproxy_config
96 step_config: *step_config
100 - [ {get_param: DockerNamespace}, {get_param: DockerHAProxyConfigImage} ]
101 volumes: &deployed_cert_mount
104 - - {get_param: DeployedSSLCertificatePath}
105 - {get_param: DeployedSSLCertificatePath}
108 /var/lib/kolla/config_files/haproxy.json:
109 command: haproxy -f /etc/haproxy/haproxy.cfg
116 - [ {get_param: DockerNamespace}, {get_param: DockerHAProxyImage} ]
122 - {get_attr: [ContainersCommon, volumes]}
123 - *deployed_cert_mount
125 - /var/lib/kolla/config_files/haproxy.json:/var/lib/kolla/config_files/config.json:ro
126 - /var/lib/config-data/haproxy/etc/:/etc/:ro
128 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
130 get_attr: [HAProxyBase, role_data, metadata_settings]