7f0bd950acc17e52d4a36c9304ecae005c030991
[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   ServiceNetMap:
8     default: {}
9     description: Mapping of service_name -> network name. Typically set
10                  via parameter_defaults in the resource registry.  This
11                  mapping overrides those in ServiceNetMapDefaults.
12     type: json
13   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   SaharaPassword:
19     description: The password for the sahara service account, used by sahara-api.
20     type: string
21     hidden: true
22   SaharaWorkers:
23     default: 0
24     description: The number of workers for the sahara-api.
25     type: number
26   KeystoneRegion:
27     type: string
28     default: 'regionOne'
29     description: Keystone region for endpoint
30
31 resources:
32   SaharaBase:
33     type: ./sahara-base.yaml
34     properties:
35       ServiceNetMap: {get_param: ServiceNetMap}
36       EndpointMap: {get_param: EndpointMap}
37
38 outputs:
39   role_data:
40     description: Role data for the Sahara API role.
41     value:
42       service_name: sahara_api
43       config_settings:
44         map_merge:
45           - get_attr: [SaharaBase, role_data, config_settings]
46           - sahara::port: {get_param: [EndpointMap, SaharaInternal, port]}
47             sahara::service::api::api_workers: {get_param: SaharaWorkers}
48             sahara::keystone::auth::public_url: {get_param: [EndpointMap, SaharaPublic, uri]}
49             sahara::keystone::auth::internal_url: {get_param: [EndpointMap, SaharaInternal, uri]}
50             sahara::keystone::auth::admin_url: {get_param: [EndpointMap, SaharaAdmin, uri]}
51             sahara::keystone::auth::password: {get_param: SaharaPassword }
52             sahara::keystone::auth::region: {get_param: KeystoneRegion}
53             tripleo.sahara_api.firewall_rules:
54               '132 sahara':
55                 dport:
56                   - 8386
57                   - 13386
58       step_config: |
59         include ::tripleo::profile::base::sahara::api