1 heat_template_version: pike
4 MySQL with Pacemaker service deployment using puppet
7 #Parameters not used EndpointMap
10 description: Dictionary packing service data
14 description: Mapping of service_name -> network name. Typically set
15 via parameter_defaults in the resource registry. This
16 mapping overrides those in ServiceNetMapDefaults.
23 description: Role name on which the service is applied
27 description: Parameters specific to the role
31 description: Mapping of service endpoint -> protocol. Typically set
32 via parameter_defaults in the resource registry.
35 default: '/etc/ipa/ca.crt'
37 description: Specifies the default CA cert to use if TLS is used for
38 services in the internal network.
43 type: ../../database/mysql.yaml
45 ServiceData: {get_param: ServiceData}
46 ServiceNetMap: {get_param: ServiceNetMap}
47 DefaultPasswords: {get_param: DefaultPasswords}
48 EndpointMap: {get_param: EndpointMap}
49 RoleName: {get_param: RoleName}
50 RoleParameters: {get_param: RoleParameters}
54 description: Service MySQL with Pacemaker using composable services.
59 - get_attr: [MysqlBase, role_data, config_settings]
60 - tripleo::profile::pacemaker::database::mysql::bind_address:
63 "%{hiera('fqdn_$NETWORK')}"
65 $NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
66 # NOTE: bind IP is found in Heat replacing the network name with the
67 # local node IP for the given network; replacement examples
68 # (eg. for internal_api):
70 # internal_api_uri -> [IP]
71 # internal_api_subnet - > IP/CIDR
72 tripleo::profile::pacemaker::database::mysql::gmcast_listen_addr:
73 get_param: [ServiceNetMap, MysqlNetwork]
74 tripleo::profile::pacemaker::database::mysql::ca_file:
75 get_param: InternalTLSCAFile
77 include ::tripleo::profile::pacemaker::database::mysql
79 get_attr: [MysqlBase, role_data, metadata_settings]
81 - name: Check for galera root password
83 file: path=/root/.my.cnf state=file