1 heat_template_version: pike
4 MySQL HA clustercheck service deployment using puppet
5 This service is used by HAProxy in a HA scenario to report whether
6 the local galera node is synced
9 DockerClustercheckImage:
12 DockerClustercheckConfigImage:
13 description: The container image to use for the clustercheck config_volume
17 description: Mapping of service endpoint -> protocol. Typically set
18 via parameter_defaults in the resource registry.
22 description: Dictionary packing service data
26 description: Mapping of service_name -> network name. Typically set
27 via parameter_defaults in the resource registry. This
28 mapping overrides those in ServiceNetMapDefaults.
35 description: Role name on which the service is applied
39 description: Parameters specific to the role
45 type: ../containers-common.yaml
47 # We import from the corresponding docker service because otherwise we risk
48 # rewriting the tripleo.mysql.firewall_rules key with the baremetal firewall
49 # rules (see LP#1728918)
51 type: ../../../docker/services/pacemaker/database/mysql.yaml
53 EndpointMap: {get_param: EndpointMap}
54 ServiceData: {get_param: ServiceData}
55 ServiceNetMap: {get_param: ServiceNetMap}
56 DefaultPasswords: {get_param: DefaultPasswords}
57 RoleName: {get_param: RoleName}
58 RoleParameters: {get_param: RoleParameters}
62 description: Containerized service clustercheck using composable services.
64 service_name: clustercheck
65 config_settings: {get_attr: [MysqlPuppetBase, role_data, config_settings]}
66 logging_source: {get_attr: [MysqlPuppetBase, role_data, logging_source]}
67 logging_groups: {get_attr: [MysqlPuppetBase, role_data, logging_groups]}
68 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
69 # BEGIN DOCKER SETTINGS #
71 config_volume: clustercheck
72 puppet_tags: file # set this even though file is the default
73 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
74 config_image: {get_param: DockerClustercheckConfigImage}
76 /var/lib/kolla/config_files/clustercheck.json:
77 command: /usr/sbin/xinetd -dontfork
79 - source: "/var/lib/kolla/config_files/src/*"
82 preserve_properties: true
87 image: {get_param: DockerClustercheckImage}
92 - {get_attr: [ContainersCommon, volumes]}
94 - /var/lib/kolla/config_files/clustercheck.json:/var/lib/kolla/config_files/config.json
95 - /var/lib/config-data/puppet-generated/clustercheck/:/var/lib/kolla/config_files/src:ro
96 - /var/lib/mysql:/var/lib/mysql
98 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS
102 # Nothing: It's not managed by pacemaker, so let paunch do it.