1 heat_template_version: pike
4 MySQL with Pacemaker service deployment using puppet
7 #Parameters not used EndpointMap
10 description: Mapping of service_name -> network name. Typically set
11 via parameter_defaults in the resource registry. This
12 mapping overrides those in ServiceNetMapDefaults.
19 description: Role name on which the service is applied
23 description: Parameters specific to the role
27 description: Mapping of service endpoint -> protocol. Typically set
28 via parameter_defaults in the resource registry.
31 default: '/etc/ipa/ca.crt'
33 description: Specifies the default CA cert to use if TLS is used for
34 services in the internal network.
39 type: ../../database/mysql.yaml
41 ServiceNetMap: {get_param: ServiceNetMap}
42 DefaultPasswords: {get_param: DefaultPasswords}
43 EndpointMap: {get_param: EndpointMap}
44 RoleName: {get_param: RoleName}
45 RoleParameters: {get_param: RoleParameters}
49 description: Service MySQL with Pacemaker using composable services.
54 - get_attr: [MysqlBase, role_data, config_settings]
55 - tripleo::profile::pacemaker::database::mysql::bind_address:
58 "%{hiera('fqdn_$NETWORK')}"
60 $NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
61 # NOTE: bind IP is found in Heat replacing the network name with the
62 # local node IP for the given network; replacement examples
63 # (eg. for internal_api):
65 # internal_api_uri -> [IP]
66 # internal_api_subnet - > IP/CIDR
67 tripleo::profile::pacemaker::database::mysql::gmcast_listen_addr:
68 get_param: [ServiceNetMap, MysqlNetwork]
69 tripleo::profile::pacemaker::database::mysql::ca_file:
70 get_param: InternalTLSCAFile
72 include ::tripleo::profile::pacemaker::database::mysql
74 get_attr: [MysqlBase, role_data, metadata_settings]
76 - name: Check for galera root password
78 file: path=/root/.my.cnf state=file