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
10 description: namespace
11 default: 'tripleoupstream'
13 DockerClustercheckImage:
15 default: 'centos-binary-mariadb:latest'
17 DockerClustercheckConfigImage:
18 description: The container image to use for the clustercheck config_volume
19 default: 'centos-binary-mariadb:latest'
23 description: Mapping of service endpoint -> protocol. Typically set
24 via parameter_defaults in the resource registry.
28 description: Mapping of service_name -> network name. Typically set
29 via parameter_defaults in the resource registry. This
30 mapping overrides those in ServiceNetMapDefaults.
37 description: Role name on which the service is applied
41 description: Parameters specific to the role
47 type: ../containers-common.yaml
50 type: ../../../puppet/services/pacemaker/database/mysql.yaml
52 EndpointMap: {get_param: EndpointMap}
53 ServiceNetMap: {get_param: ServiceNetMap}
54 DefaultPasswords: {get_param: DefaultPasswords}
55 RoleName: {get_param: RoleName}
56 RoleParameters: {get_param: RoleParameters}
60 description: Containerized service clustercheck using composable services.
62 service_name: clustercheck
63 config_settings: {get_attr: [MysqlPuppetBase, role_data, config_settings]}
64 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
65 # BEGIN DOCKER SETTINGS #
67 config_volume: clustercheck
68 puppet_tags: file # set this even though file is the default
69 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
73 - [ {get_param: DockerNamespace}, {get_param: DockerClustercheckConfigImage} ]
75 /var/lib/kolla/config_files/clustercheck.json:
76 command: /usr/sbin/xinetd -dontfork
78 - source: "/var/lib/kolla/config_files/src/*"
81 preserve_properties: true
89 - [ {get_param: DockerNamespace}, {get_param: DockerClustercheckImage} ]
94 - {get_attr: [ContainersCommon, volumes]}
96 - /var/lib/kolla/config_files/clustercheck.json:/var/lib/kolla/config_files/config.json
97 - /var/lib/config-data/puppet-generated/clustercheck/:/var/lib/kolla/config_files/src:ro
98 - /var/lib/mysql:/var/lib/mysql
100 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS