4b0201f3129f81b49f1aee84076e315166b8d3c1
[apex-tripleo-heat-templates.git] / puppet / services / database / mysql-client.yaml
1 heat_template_version: ocata
2
3 description: >
4   Mysql client settings
5
6 parameters:
7   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   DefaultPasswords:
14     default: {}
15     type: json
16   RoleName:
17     default: ''
18     description: Role name on which the service is applied
19     type: string
20   RoleParameters:
21     default: {}
22     description: Parameters specific to the role
23     type: json
24   EndpointMap:
25     default: {}
26     description: Mapping of service endpoint -> protocol. Typically set
27                  via parameter_defaults in the resource registry.
28     type: json
29   EnableInternalTLS:
30     type: boolean
31     default: false
32   InternalTLSCAFile:
33     default: '/etc/ipa/ca.crt'
34     type: string
35     description: Specifies the default CA cert to use if TLS is used for
36                  services in the internal network.
37
38 outputs:
39   role_data:
40     description: Role for setting mysql client parameters
41     value:
42       service_name: mysql_client
43       config_settings:
44         tripleo::profile::base::database::mysql::client::mysql_client_bind_address: {get_param: [ServiceNetMap, MysqlNetwork]}
45         tripleo::profile::base::database::mysql::client::enable_ssl: {get_param: EnableInternalTLS}
46         tripleo::profile::base::database::mysql::client::ssl_ca: {get_param: InternalTLSCAFile}
47       step_config: |
48         include ::tripleo::profile::base::database::mysql::client