Merge "Use a single configuration file for specifying docker containers."
[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   DockerMysqlClientConfigImage:
8     description: The container image to use for the mysql_client config_volume
9     type: string
10   ServiceData:
11     default: {}
12     description: Dictionary packing service data
13     type: json
14   ServiceNetMap:
15     default: {}
16     description: Mapping of service_name -> network name. Typically set
17                  via parameter_defaults in the resource registry.  This
18                  mapping overrides those in ServiceNetMapDefaults.
19     type: json
20   DefaultPasswords:
21     default: {}
22     type: json
23   RoleName:
24     default: ''
25     description: Role name on which the service is applied
26     type: string
27   RoleParameters:
28     default: {}
29     description: Parameters specific to the role
30     type: json
31   EndpointMap:
32     default: {}
33     description: Mapping of service endpoint -> protocol. Typically set
34                  via parameter_defaults in the resource registry.
35     type: json
36   EnableInternalTLS:
37     type: boolean
38     default: false
39   InternalTLSCAFile:
40     default: '/etc/ipa/ca.crt'
41     type: string
42     description: Specifies the default CA cert to use if TLS is used for
43                  services in the internal network.
44
45 outputs:
46   role_data:
47     description: Role for setting mysql client parameters
48     value:
49       service_name: mysql_client
50       config_settings:
51         tripleo::profile::base::database::mysql::client::mysql_client_bind_address: {get_param: [ServiceNetMap, MysqlNetwork]}
52         tripleo::profile::base::database::mysql::client::enable_ssl: {get_param: EnableInternalTLS}
53         tripleo::profile::base::database::mysql::client::ssl_ca: {get_param: InternalTLSCAFile}
54       # BEGIN DOCKER SETTINGS #
55       step_config: ""
56       puppet_config:
57         config_volume: mysql_client
58         puppet_tags: file # set this even though file is the default
59         step_config: "include ::tripleo::profile::base::database::mysql::client"
60         config_image: {get_param: DockerMysqlClientConfigImage}
61       # no need for a docker config, this service only generates configuration files
62       docker_config: {}