Convert service_name to underscore syntax
[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
17 resources:
18   NovaBase:
19     type: ./nova-base.yaml
20     properties:
21       EndpointMap: {get_param: EndpointMap}
22
23 outputs:
24   role_data:
25     description: Role data for the Nova API service.
26     value:
27       service_name: nova_api
28       config_settings:
29         map_merge:
30           - get_attr: [NovaBase, role_data, config_settings]
31           - nova::api::osapi_compute_workers: {get_param: NovaWorkers}
32             nova::api::metadata_workers: {get_param: NovaWorkers}
33             nova::cron::archive_deleted_rows::hour: '"*/12"'
34             nova::cron::archive_deleted_rows::destination: '"/dev/null"'
35             tripleo.nova_api.firewall_rules:
36               '113 nova_api':
37                 dport:
38                   - 6080
39                   - 13080
40                   - 8773
41                   - 3773
42                   - 8774
43                   - 13774
44                   - 8775
45       step_config: |
46         include tripleo::profile::base::nova::api