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: Mapping of service_name -> network name. Typically set
23 via parameter_defaults in the resource registry. This
24 mapping overrides those in ServiceNetMapDefaults.
31 description: Role name on which the service is applied
35 description: Parameters specific to the role
41 type: ../containers-common.yaml
44 type: ../../../puppet/services/pacemaker/database/mysql.yaml
46 EndpointMap: {get_param: EndpointMap}
47 ServiceNetMap: {get_param: ServiceNetMap}
48 DefaultPasswords: {get_param: DefaultPasswords}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Containerized service clustercheck using composable services.
56 service_name: clustercheck
57 config_settings: {get_attr: [MysqlPuppetBase, role_data, config_settings]}
58 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
59 # BEGIN DOCKER SETTINGS #
61 config_volume: clustercheck
62 puppet_tags: file # set this even though file is the default
63 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
64 config_image: {get_param: DockerClustercheckConfigImage}
66 /var/lib/kolla/config_files/clustercheck.json:
67 command: /usr/sbin/xinetd -dontfork
69 - source: "/var/lib/kolla/config_files/src/*"
72 preserve_properties: true
77 image: {get_param: DockerClustercheckImage}
82 - {get_attr: [ContainersCommon, volumes]}
84 - /var/lib/kolla/config_files/clustercheck.json:/var/lib/kolla/config_files/config.json
85 - /var/lib/config-data/puppet-generated/clustercheck/:/var/lib/kolla/config_files/src:ro
86 - /var/lib/mysql:/var/lib/mysql
88 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS