34bbc49c5c680e20316c63573aeb7e05801a3e38
[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   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   NovaWorkers:
19     default: 0
20     description: Number of workers for Nova API service.
21     type: number
22   NovaPassword:
23     description: The password for the nova service and db account, used by nova-api.
24     type: string
25     hidden: true
26   KeystoneRegion:
27     type: string
28     default: 'regionOne'
29     description: Keystone region for endpoint
30
31 resources:
32   NovaBase:
33     type: ./nova-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 Nova API service.
41     value:
42       service_name: nova_api
43       config_settings:
44         map_merge:
45           - get_attr: [NovaBase, role_data, config_settings]
46           - nova::api::osapi_compute_workers: {get_param: NovaWorkers}
47             nova::api::metadata_workers: {get_param: NovaWorkers}
48             nova::cron::archive_deleted_rows::hour: '"*/12"'
49             nova::cron::archive_deleted_rows::destination: '"/dev/null"'
50             tripleo.nova_api.firewall_rules:
51               '113 nova_api':
52                 dport:
53                   - 6080
54                   - 13080
55                   - 8773
56                   - 3773
57                   - 8774
58                   - 13774
59                   - 8775
60             nova::api::admin_tenant_name: 'service'
61             nova::api::enabled: true
62             nova::api::default_floating_pool: 'public'
63             nova::api::sync_db_api: true
64             nova::api::enable_proxy_headers_parsing: true
65             nova::keystone::auth::tenant: 'service'
66             nova::keystone::auth::public_url: {get_param: [EndpointMap, NovaPublic, uri]}
67             nova::keystone::auth::internal_url: {get_param: [EndpointMap, NovaInternal, uri]}
68             nova::keystone::auth::admin_url: {get_param: [EndpointMap, NovaAdmin, uri]}
69             nova::keystone::auth::password: {get_param: NovaPassword}
70             nova::keystone::auth::region: {get_param: KeystoneRegion}
71       step_config: |
72         include tripleo::profile::base::nova::api