Add 'service_name' to composable services
[apex-tripleo-heat-templates.git] / puppet / services / sahara-engine.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Sahara Engine service configured with Puppet
5
6 parameters:
7   EndpointMap:
8     default: {}
9     description: Mapping of service endpoint -> protocol. Typically set
10                  via parameter_defaults in the resource registry.
11     type: json
12   SaharaPassword:
13     default: unset
14     description: The password for the sahara service account, used by sahara-api.
15     type: string
16     hidden: true
17
18 resources:
19   SaharaBase:
20     type: ./sahara-base.yaml
21
22 outputs:
23   role_data:
24     description: Role data for the Sahara Engine role.
25     value:
26       service_name: sahara-engine
27       config_settings:
28         map_merge:
29           - get_attr: [SaharaBase, role_data, config_settings]
30           - sahara_dsn: &sahara_dsn
31               list_join:
32                 - ''
33                 - - {get_param: [EndpointMap, MysqlVirtual, protocol]}
34                   - '://sahara:'
35                   - {get_param: SaharaPassword}
36                   - '@'
37                   - {get_param: [EndpointMap, MysqlVirtual, host]}
38                   - '/sahara'
39             sahara::database_connection: *sahara_dsn
40             sahara::db::mysql::password: {get_param: SaharaPassword}
41             sahara::db::mysql::user: sahara
42             sahara::db::mysql::host: {get_param: [EndpointMap, MysqlVirtual, host]}
43             sahara::db::mysql::dbname: sahara
44             sahara::db::mysql::allowed_hosts:
45               - '%'
46               - "%{hiera('mysql_bind_host')}"
47       step_config: |
48         include ::tripleo::profile::base::sahara::engine