c733f3cd963ff183bbc626552ee84cc1cb0f3492
[apex-tripleo-heat-templates.git] / puppet / services / database / mysql.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   MySQL service deployment using puppet
5
6 parameters:
7   #Parameters not used EndpointMap
8   ServiceNetMap:
9     default: {}
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.
13     type: json
14   EndpointMap:
15     default: {}
16     description: Mapping of service endpoint -> protocol. Typically set
17                  via parameter_defaults in the resource registry.
18     type: json
19
20 outputs:
21   role_data:
22     description: Service MySQL using composable services.
23     value:
24       service_name: mysql
25       config_settings:
26         # The Galera package should work in cluster and
27         # non-cluster modes based on the config file.
28         # We set the package name here explicitly so
29         # that it matches what we pre-install
30         # in tripleo-puppet-elements.
31         mysql::server::package_name: 'mariadb-galera-server'
32         mysql::server::manage_config_file: true
33         tripleo.mysql.firewall_rules:
34           '104 mysql galera':
35             dport:
36               - 873
37               - 3306
38               - 4444
39               - 4567
40               - 4568
41               - 9200
42       step_config: |
43         include ::tripleo::profile::base::database::mysql