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.
40 description: Service MySQL using composable services.
44 # The Galera package should work in cluster and
45 # non-cluster modes based on the config file.
46 # We set the package name here explicitly so
47 # that it matches what we pre-install
48 # in tripleo-puppet-elements.
49 mysql::server::package_name: 'mariadb-galera-server'
50 mysql::server::manage_config_file: true
51 tripleo.mysql.firewall_rules:
60 mysql_max_connections: {get_param: MysqlMaxConnections}
61 mysql::server::root_password:
63 expression: $.data.passwords.where($ != '').first()
66 - {get_param: MysqlRootPassword}
67 - {get_param: [DefaultPasswords, mysql_root_password]}
68 mysql_clustercheck_password: {get_param: MysqlClustercheckPassword}
69 enable_galera: {get_param: EnableGalera}
70 # NOTE: bind IP is found in Heat replacing the network name with the
71 # local node IP for the given network; replacement examples
72 # (eg. for internal_api):
74 # internal_api_uri -> [IP]
75 # internal_api_subnet - > IP/CIDR
76 mysql_bind_host: {get_param: [ServiceNetMap, MysqlNetwork]}
78 include ::tripleo::profile::base::database::mysql