Merge "Remove outdated Neutron auth options"
[apex-tripleo-heat-templates.git] / puppet / services / nova-api.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Nova 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   NovaWorkers:
13     default: 0
14     description: Number of workers for Nova API service.
15     type: number
16   NovaPassword:
17     description: The password for the nova service and db account, used by nova-api.
18     type: string
19     hidden: true
20   KeystoneRegion:
21     type: string
22     default: 'regionOne'
23     description: Keystone region for endpoint
24
25 resources:
26   NovaBase:
27     type: ./nova-base.yaml
28     properties:
29       EndpointMap: {get_param: EndpointMap}
30
31 outputs:
32   role_data:
33     description: Role data for the Nova API service.
34     value:
35       service_name: nova_api
36       config_settings:
37         map_merge:
38           - get_attr: [NovaBase, role_data, config_settings]
39           - nova::api::osapi_compute_workers: {get_param: NovaWorkers}
40             nova::api::metadata_workers: {get_param: NovaWorkers}
41             nova::cron::archive_deleted_rows::hour: '"*/12"'
42             nova::cron::archive_deleted_rows::destination: '"/dev/null"'
43             tripleo.nova_api.firewall_rules:
44               '113 nova_api':
45                 dport:
46                   - 6080
47                   - 13080
48                   - 8773
49                   - 3773
50                   - 8774
51                   - 13774
52                   - 8775
53             nova::api::admin_tenant_name: 'service'
54             nova::api::enabled: true
55             nova::api::default_floating_pool: 'public'
56             nova::api::sync_db_api: true
57             nova::api::enable_proxy_headers_parsing: true
58             nova::keystone::auth::tenant: 'service'
59             nova::keystone::auth::public_url: {get_param: [EndpointMap, NovaPublic, uri]}
60             nova::keystone::auth::internal_url: {get_param: [EndpointMap, NovaInternal, uri]}
61             nova::keystone::auth::admin_url: {get_param: [EndpointMap, NovaAdmin, uri]}
62             nova::keystone::auth::password: {get_param: NovaPassword}
63             nova::keystone::auth::region: {get_param: KeystoneRegion}
64       step_config: |
65         include tripleo::profile::base::nova::api