1 heat_template_version: pike
4 OpenStack containerized HAproxy service
10 DockerHAProxyConfigImage:
11 description: The container image to use for the haproxy config_volume
15 description: Dictionary packing service data
19 description: Mapping of service_name -> network name. Typically set
20 via parameter_defaults in the resource registry. This
21 mapping overrides those in ServiceNetMapDefaults.
28 description: Mapping of service endpoint -> protocol. Typically set
29 via parameter_defaults in the resource registry.
32 description: Password for HAProxy stats endpoint
36 description: User for HAProxy stats endpoint
41 description: Syslog address where HAproxy will send its log
43 DeployedSSLCertificatePath:
44 default: '/etc/pki/tls/private/overcloud_endpoint.pem'
46 The filepath of the certificate as it will be stored in the controller.
49 description: The password for the redis service account.
52 MonitoringSubscriptionHaproxy:
53 default: 'overcloud-haproxy'
57 description: Role name on which the service is applied
61 description: Parameters specific to the role
67 type: ./containers-common.yaml
70 type: ../../puppet/services/haproxy.yaml
72 EndpointMap: {get_param: EndpointMap}
73 ServiceData: {get_param: ServiceData}
74 ServiceNetMap: {get_param: ServiceNetMap}
75 DefaultPasswords: {get_param: DefaultPasswords}
76 RoleName: {get_param: RoleName}
77 RoleParameters: {get_param: RoleParameters}
81 description: Role data for the HAproxy role.
83 service_name: {get_attr: [HAProxyBase, role_data, service_name]}
86 - get_attr: [HAProxyBase, role_data, config_settings]
87 - tripleo::haproxy::haproxy_daemon: false
88 step_config: &step_config
89 get_attr: [HAProxyBase, role_data, step_config]
90 service_config_settings: {get_attr: [HAProxyBase, role_data, service_config_settings]}
91 # BEGIN DOCKER SETTINGS
93 config_volume: haproxy
94 puppet_tags: haproxy_config
95 step_config: *step_config
96 config_image: {get_param: DockerHAProxyConfigImage}
97 volumes: &deployed_cert_mount
100 - - {get_param: DeployedSSLCertificatePath}
101 - {get_param: DeployedSSLCertificatePath}
104 /var/lib/kolla/config_files/haproxy.json:
105 command: haproxy -f /etc/haproxy/haproxy.cfg
107 - source: "/var/lib/kolla/config_files/src/*"
110 preserve_properties: true
114 image: {get_param: DockerHAProxyImage}
120 - {get_attr: [ContainersCommon, volumes]}
121 - *deployed_cert_mount
123 - /var/lib/kolla/config_files/haproxy.json:/var/lib/kolla/config_files/config.json:ro
124 - /var/lib/config-data/puppet-generated/haproxy/:/var/lib/kolla/config_files/src:ro
126 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
128 get_attr: [HAProxyBase, role_data, metadata_settings]