Merge "Add hieradata for Manila v1 and v2 endpoints"
[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     description: The password for the sahara service account, used by sahara-api.
14     type: string
15     hidden: true
16   SaharaWorkers:
17     default: 0
18     description: The number of workers for the sahara-api.
19     type: number
20   KeystoneRegion:
21     type: string
22     default: 'regionOne'
23     description: Keystone region for endpoint
24
25 resources:
26   SaharaBase:
27     type: ./sahara-base.yaml
28     properties:
29       EndpointMap: {get_param: EndpointMap}
30
31 outputs:
32   role_data:
33     description: Role data for the Sahara API role.
34     value:
35       service_name: sahara_api
36       config_settings:
37         map_merge:
38           - get_attr: [SaharaBase, role_data, config_settings]
39           - sahara::port: {get_param: [EndpointMap, SaharaInternal, port]}
40             sahara::service::api::api_workers: {get_param: SaharaWorkers}
41             sahara::keystone::auth::public_url: {get_param: [EndpointMap, SaharaPublic, uri]}
42             sahara::keystone::auth::internal_url: {get_param: [EndpointMap, SaharaInternal, uri]}
43             sahara::keystone::auth::admin_url: {get_param: [EndpointMap, SaharaAdmin, uri]}
44             sahara::keystone::auth::password: {get_param: SaharaPassword }
45             sahara::keystone::auth::region: {get_param: KeystoneRegion}
46             tripleo.sahara_api.firewall_rules:
47               '132 sahara':
48                 dport:
49                   - 8386
50                   - 13386
51       step_config: |
52         include ::tripleo::profile::base::sahara::api