1 heat_template_version: 2016-10-14
4 MySQL 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: Mapping of service endpoint -> protocol. Typically set
20 via parameter_defaults in the resource registry.
23 description: Configures MySQL max_connections config setting
30 MysqlClustercheckPassword:
35 description: Whether to use Galera instead of regular MariaDB.
41 type: OS::TripleO::Services::MySQLTLS
43 ServiceNetMap: {get_param: ServiceNetMap}
47 description: Service MySQL using composable services.
52 - get_attr: [MySQLTLS, role_data, config_settings]
54 # The Galera package should work in cluster and
55 # non-cluster modes based on the config file.
56 # We set the package name here explicitly so
57 # that it matches what we pre-install
58 # in tripleo-puppet-elements.
59 mysql::server::package_name: 'mariadb-galera-server'
60 mysql::server::manage_config_file: true
61 tripleo.mysql.firewall_rules:
70 mysql_max_connections: {get_param: MysqlMaxConnections}
71 mysql::server::root_password:
73 expression: $.data.passwords.where($ != '').first()
76 - {get_param: MysqlRootPassword}
77 - {get_param: [DefaultPasswords, mysql_root_password]}
78 mysql_clustercheck_password: {get_param: MysqlClustercheckPassword}
79 enable_galera: {get_param: EnableGalera}
80 # NOTE: bind IP is found in Heat replacing the network name with the
81 # local node IP for the given network; replacement examples
82 # (eg. for internal_api):
84 # internal_api_uri -> [IP]
85 # internal_api_subnet - > IP/CIDR
86 mysql_bind_host: {get_param: [ServiceNetMap, MysqlNetwork]}
87 tripleo::profile::base::database::mysql::bind_address:
92 $NETWORK: {get_param: [ServiceNetMap, MysqlNetwork]}
94 include ::tripleo::profile::base::database::mysql
98 service: name=mariadb state=stopped
101 service: name=mariadb state=started