Merge "Ensure yum cache is ready before update"
[apex-tripleo-heat-templates.git] / puppet / services / nova-metadata.yaml
1 heat_template_version: pike
2
3 description: >
4   OpenStack Nova API service configured with Puppet
5
6 parameters:
7   ServiceData:
8     default: {}
9     description: Dictionary packing service data
10     type: json
11   ServiceNetMap:
12     default: {}
13     description: Mapping of service_name -> network name. Typically set
14                  via parameter_defaults in the resource registry.  This
15                  mapping overrides those in ServiceNetMapDefaults.
16     type: json
17   DefaultPasswords:
18     default: {}
19     type: json
20   RoleName:
21     default: ''
22     description: Role name on which the service is applied
23     type: string
24   RoleParameters:
25     default: {}
26     description: Parameters specific to the role
27     type: json
28   EndpointMap:
29     default: {}
30     description: Mapping of service endpoint -> protocol. Typically set
31                  via parameter_defaults in the resource registry.
32     type: json
33   NovaWorkers:
34     default: 0
35     description: Number of workers for Nova services.
36     type: number
37
38 conditions:
39   nova_workers_zero: {equals : [{get_param: NovaWorkers}, 0]}
40
41 outputs:
42   role_data:
43     description: Role data for the Nova Metadata service.
44     value:
45       service_name: nova_metadata
46       config_settings:
47         map_merge:
48         - nova::api::metadata_listen: {get_param: [ServiceNetMap, NovaMetadataNetwork]}
49         -
50           if:
51           - nova_workers_zero
52           - {}
53           - nova::api::metadata_workers: {get_param: NovaWorkers}
54       step_config: ""