40931da6e1b27da934e033412ec28d7db4525974
[apex-tripleo-heat-templates.git] / puppet / services / nova-metadata.yaml
1 heat_template_version: 2016-10-14
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   DefaultPasswords:
14     default: {}
15     type: json
16   EndpointMap:
17     default: {}
18     description: Mapping of service endpoint -> protocol. Typically set
19                  via parameter_defaults in the resource registry.
20     type: json
21   NovaWorkers:
22     default: 0
23     description: Number of workers for Nova API service.
24     type: number
25
26 conditions:
27   nova_workers_zero: {equals : [{get_param: NovaWorkers}, 0]}
28
29 outputs:
30   role_data:
31     description: Role data for the Nova Metadata service.
32     value:
33       service_name: nova_metadata
34       config_settings:
35         map_merge:
36         - nova::api::metadata_listen: {get_param: [ServiceNetMap, NovaMetadataNetwork]}
37         -
38           if:
39           - nova_workers_zero
40           - {}
41           - nova::api::metadata_workers: {get_param: NovaWorkers}
42       step_config: ""