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: Dictionary packing service data
32 description: Mapping of service_name -> network name. Typically set
33 via parameter_defaults in the resource registry. This
34 mapping overrides those in ServiceNetMapDefaults.
41 description: Role name on which the service is applied
45 description: Parameters specific to the role
51 type: ../containers-common.yaml
54 type: ../../../puppet/services/pacemaker/database/mysql.yaml
56 EndpointMap: {get_param: EndpointMap}
57 ServiceData: {get_param: ServiceData}
58 ServiceNetMap: {get_param: ServiceNetMap}
59 DefaultPasswords: {get_param: DefaultPasswords}
60 RoleName: {get_param: RoleName}
61 RoleParameters: {get_param: RoleParameters}
65 description: Containerized service clustercheck using composable services.
67 service_name: clustercheck
68 config_settings: {get_attr: [MysqlPuppetBase, role_data, config_settings]}
69 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
70 # BEGIN DOCKER SETTINGS #
72 config_volume: clustercheck
73 puppet_tags: file # set this even though file is the default
74 step_config: "include ::tripleo::profile::pacemaker::clustercheck"
78 - [ {get_param: DockerNamespace}, {get_param: DockerClustercheckConfigImage} ]
80 /var/lib/kolla/config_files/clustercheck.json:
81 command: /usr/sbin/xinetd -dontfork
83 - source: "/var/lib/kolla/config_files/src/*"
86 preserve_properties: true
94 - [ {get_param: DockerNamespace}, {get_param: DockerClustercheckImage} ]
99 - {get_attr: [ContainersCommon, volumes]}
101 - /var/lib/kolla/config_files/clustercheck.json:/var/lib/kolla/config_files/config.json
102 - /var/lib/config-data/puppet-generated/clustercheck/:/var/lib/kolla/config_files/src:ro
103 - /var/lib/mysql:/var/lib/mysql
105 - KOLLA_CONFIG_STRATEGY=COPY_ALWAYS