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