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
48 type: ../../../puppet/services/pacemaker/database/mysql.yaml
50 EndpointMap: {get_param: EndpointMap}
51 ServiceData: {get_param: ServiceData}
52 ServiceNetMap: {get_param: ServiceNetMap}
53 DefaultPasswords: {get_param: DefaultPasswords}
54 RoleName: {get_param: RoleName}
55 RoleParameters: {get_param: RoleParameters}
59 description: Containerized service clustercheck using composable services.
61 service_name: clustercheck
62 config_settings: {get_attr: [MysqlPuppetBase, role_data, config_settings]}
63 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
64 # BEGIN DOCKER SETTINGS #
66 config_volume: clustercheck
67 puppet_tags: file # set this even though file is the default
68 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
69 config_image: {get_param: DockerClustercheckConfigImage}
71 /var/lib/kolla/config_files/clustercheck.json:
72 command: /usr/sbin/xinetd -dontfork
74 - source: "/var/lib/kolla/config_files/src/*"
77 preserve_properties: true
82 image: {get_param: DockerClustercheckImage}
87 - {get_attr: [ContainersCommon, volumes]}
89 - /var/lib/kolla/config_files/clustercheck.json:/var/lib/kolla/config_files/config.json
90 - /var/lib/config-data/puppet-generated/clustercheck/:/var/lib/kolla/config_files/src:ro
91 - /var/lib/mysql:/var/lib/mysql
93 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS