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.
34 type: ../../database/mysql.yaml
36 ServiceNetMap: {get_param: ServiceNetMap}
37 DefaultPasswords: {get_param: DefaultPasswords}
38 EndpointMap: {get_param: EndpointMap}
39 RoleName: {get_param: RoleName}
40 RoleParameters: {get_param: RoleParameters}
44 description: Service MySQL with Pacemaker using composable services.
49 - get_attr: [MysqlBase, role_data, config_settings]
50 - tripleo::profile::pacemaker::database::mysql::bind_address:
53 "%{hiera('fqdn_$NETWORK')}"
55 $NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
56 # NOTE: bind IP is found in Heat replacing the network name with the
57 # local node IP for the given network; replacement examples
58 # (eg. for internal_api):
60 # internal_api_uri -> [IP]
61 # internal_api_subnet - > IP/CIDR
62 tripleo::profile::pacemaker::database::mysql::gmcast_listen_addr:
63 get_param: [ServiceNetMap, MysqlNetwork]
65 include ::tripleo::profile::pacemaker::database::mysql
67 get_attr: [MysqlBase, role_data, metadata_settings]
69 - name: Check for galera root password
71 file: path=/root/.my.cnf state=file