1 heat_template_version: 2016-10-14
4 HAproxy service configured with Puppet
9 description: Mapping of service_name -> network name. Typically set
10 via parameter_defaults in the resource registry. This
11 mapping overrides those in ServiceNetMapDefaults.
18 description: Mapping of service endpoint -> protocol. Typically set
19 via parameter_defaults in the resource registry.
22 description: Password for HAProxy stats endpoint
26 description: User for HAProxy stats endpoint
31 description: Syslog address where HAproxy will send its log
34 description: The password for Redis
37 MonitoringSubscriptionHaproxy:
38 default: 'overcloud-haproxy'
44 type: OS::TripleO::Services::HAProxyPublicTLS
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 EndpointMap: {get_param: EndpointMap}
51 type: OS::TripleO::Services::HAProxyInternalTLS
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 EndpointMap: {get_param: EndpointMap}
59 description: Role data for the HAproxy role.
62 monitoring_subscription: {get_param: MonitoringSubscriptionHaproxy}
65 - get_attr: [HAProxyPublicTLS, role_data, config_settings]
66 - get_attr: [HAProxyInternalTLS, role_data, config_settings]
67 - tripleo.haproxy.firewall_rules:
70 tripleo::haproxy::haproxy_log_address: {get_param: HAProxySyslogAddress}
71 tripleo::haproxy::haproxy_stats_user: {get_param: HAProxyStatsUser}
72 tripleo::haproxy::haproxy_stats_password: {get_param: HAProxyStatsPassword}
73 tripleo::haproxy::redis_password: {get_param: RedisPassword}
74 tripleo::profile::base::haproxy::certificates_specs:
76 - get_attr: [HAProxyPublicTLS, role_data, certificates_specs]
77 - get_attr: [HAProxyInternalTLS, role_data, certificates_specs]
79 include ::tripleo::profile::base::haproxy
81 - name: Stop haproxy service
83 service: name=haproxy state=stopped
84 - name: Start haproxy service
85 tags: step4 # Needed at step 4 for mysql
86 service: name=haproxy state=started