1 heat_template_version: pike
4 OpenStack containerized HAproxy service for pacemaker
9 default: 'tripleoupstream'
13 default: 'centos-binary-haproxy:latest'
17 description: Mapping of service_name -> network name. Typically set
18 via parameter_defaults in the resource registry. This
19 mapping overrides those in ServiceNetMapDefaults.
26 description: Mapping of service endpoint -> protocol. Typically set
27 via parameter_defaults in the resource registry.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
41 type: ../../../puppet/services/pacemaker/haproxy.yaml
43 EndpointMap: {get_param: EndpointMap}
44 ServiceNetMap: {get_param: ServiceNetMap}
45 DefaultPasswords: {get_param: DefaultPasswords}
46 RoleName: {get_param: RoleName}
47 RoleParameters: {get_param: RoleParameters}
51 description: Role data for the HAproxy role.
53 service_name: {get_attr: [HAProxyBase, role_data, service_name]}
56 - get_attr: [HAProxyBase, role_data, config_settings]
57 - tripleo::haproxy::haproxy_daemon: false
59 tripleo::profile::pacemaker::haproxy_bundle::haproxy_docker_image: &haproxy_image
62 - [ {get_param: DockerNamespace}, {get_param: DockerHAProxyImage} ]
66 - - &noop_pcmk "['pcmk_bundle', 'pcmk_resource', 'pcmk_property', 'pcmk_constraint', 'pcmk_resource_default'].each |String $val| { noop_resource($val) }"
67 - 'include ::tripleo::profile::pacemaker::haproxy_bundle'
68 service_config_settings: {get_attr: [HAProxyBase, role_data, service_config_settings]}
69 # BEGIN DOCKER SETTINGS
71 config_volume: haproxy
72 puppet_tags: haproxy_config
76 - - "exec {'wait-for-settle': command => '/bin/true' }"
77 - &noop_firewall "class tripleo::firewall(){}; define tripleo::firewall::rule( $port = undef, $dport = undef, $sport = undef, $proto = undef, $action = undef, $state = undef, $source = undef, $iniface = undef, $chain = undef, $destination = undef, $extras = undef){}"
79 - 'include ::tripleo::profile::pacemaker::haproxy_bundle'
80 config_image: *haproxy_image
82 /var/lib/kolla/config_files/haproxy.json:
83 command: haproxy -f /etc/haproxy/haproxy.cfg
98 - - "cp -a /tmp/puppet-etc/* /etc/puppet; echo '{\"step\": 2}' > /etc/puppet/hieradata/docker.json"
99 - "FACTER_uuid=docker puppet apply --tags file,file_line,concat,augeas,TAGS -v -e 'CONFIG'"
101 TAGS: 'pacemaker::resource::bundle,pacemaker::property,pacemaker::resource::ip,pacemaker::resource::ocf,pacemaker::constraint::order,pacemaker::constraint::colocation'
106 - 'include ::tripleo::profile::base::pacemaker;include ::tripleo::profile::pacemaker::haproxy_bundle'
107 image: *haproxy_image
109 - /etc/hosts:/etc/hosts:ro
110 - /etc/localtime:/etc/localtime:ro
111 - /etc/puppet:/tmp/puppet-etc:ro
112 - /usr/share/openstack-puppet/modules:/usr/share/openstack-puppet/modules:ro
113 - /etc/corosync/corosync.conf:/etc/corosync/corosync.conf:ro
114 - /dev/shm:/dev/shm:rw
116 get_attr: [HAProxyBase, role_data, metadata_settings]