c91120198ead57297707262e12cc7c503682a4e7
[apex-tripleo-heat-templates.git] / puppet / services / sahara-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Sahara API 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   SaharaWorkers:
18     default: 0
19     description: The number of workers for the sahara-api.
20     type: number
21   SaharaApiVirtualIP:
22     type: string
23     default: ''
24   KeystoneRegion:
25     type: string
26     default: 'regionOne'
27     description: Keystone region for endpoint
28
29 resources:
30   SaharaBase:
31     type: ./sahara-base.yaml
32
33 outputs:
34   role_data:
35     description: Role data for the Sahara API role.
36     value:
37       service_name: sahara-api
38       config_settings:
39         map_merge:
40           - get_attr: [SaharaBase, role_data, config_settings]
41           - sahara::host: {get_param: SaharaApiVirtualIP}
42             sahara::port: {get_param: [EndpointMap, SaharaInternal, port]}
43             sahara::auth_uri: {get_param: [EndpointMap, KeystoneInternal, uri] }
44             sahara::identity_uri: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
45             sahara::admin_password: {get_param: SaharaPassword}
46             sahara::service::api::api_workers: {get_param: SaharaApiWorkers}
47             sahara::keystone::auth::public_url: {get_param: [EndpointMap, SaharaPublic, uri]}
48             sahara::keystone::auth::internal_url: {get_param: [EndpointMap, SaharaInternal, uri]}
49             sahara::keystone::auth::admin_url: {get_param: [EndpointMap, SaharaAdmin, uri]}
50             sahara::keystone::auth::password: {get_param: SaharaPassword }
51             sahara::keystone::auth::region: {get_param: KeystoneRegion}
52             tripleo.sahara_api.firewall_rules:
53               '132 sahara':
54                 dport:
55                   - 8386
56                   - 13386
57       step_config: |
58         include ::tripleo::profile::base::sahara::api