38a31e24b4edbe2086e2aa7abc80de6a7f14d5da
[apex-tripleo-heat-templates.git] / docker / services / database / mysql-client.yaml
1 heat_template_version: pike
2
3 description: >
4   Configuration for containerized MySQL clients
5
6 parameters:
7   DockerNamespace:
8     description: namespace
9     default: 'tripleoupstream'
10     type: string
11   DockerMysqlClientConfigImage:
12     description: The container image to use for the mysql_client config_volume
13     default: 'centos-binary-mariadb:latest'
14     type: string
15   ServiceNetMap:
16     default: {}
17     description: Mapping of service_name -> network name. Typically set
18                  via parameter_defaults in the resource registry.  This
19                  mapping overrides those in ServiceNetMapDefaults.
20     type: json
21   DefaultPasswords:
22     default: {}
23     type: json
24   RoleName:
25     default: ''
26     description: Role name on which the service is applied
27     type: string
28   RoleParameters:
29     default: {}
30     description: Parameters specific to the role
31     type: json
32   EndpointMap:
33     default: {}
34     description: Mapping of service endpoint -> protocol. Typically set
35                  via parameter_defaults in the resource registry.
36     type: json
37   EnableInternalTLS:
38     type: boolean
39     default: false
40   InternalTLSCAFile:
41     default: '/etc/ipa/ca.crt'
42     type: string
43     description: Specifies the default CA cert to use if TLS is used for
44                  services in the internal network.
45
46 outputs:
47   role_data:
48     description: Role for setting mysql client parameters
49     value:
50       service_name: mysql_client
51       config_settings:
52         tripleo::profile::base::database::mysql::client::mysql_client_bind_address: {get_param: [ServiceNetMap, MysqlNetwork]}
53         tripleo::profile::base::database::mysql::client::enable_ssl: {get_param: EnableInternalTLS}
54         tripleo::profile::base::database::mysql::client::ssl_ca: {get_param: InternalTLSCAFile}
55       # BEGIN DOCKER SETTINGS #
56       step_config: ""
57       puppet_config:
58         config_volume: mysql_client
59         puppet_tags: file # set this even though file is the default
60         step_config: "include ::tripleo::profile::base::database::mysql::client"
61         config_image:
62           list_join:
63             - '/'
64             - [ {get_param: DockerNamespace}, {get_param: DockerMysqlClientConfigImage} ]
65       # no need for a docker config, this service only generates configuration files
66       docker_config: {}