Convert service_name to underscore syntax
[apex-tripleo-heat-templates.git] / puppet / services / neutron-metadata.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron Metadata agent 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   NeutronMetadataProxySharedSecret:
13     description: Shared secret to prevent spoofing
14     type: string
15     hidden: true
16   NeutronWorkers:
17     default: 0
18     description: Number of workers for Neutron service.
19     type: number
20   NeutronPassword:
21     description: The password for the neutron service and db account, used by neutron agents.
22     type: string
23     hidden: true
24
25 resources:
26
27   NeutronBase:
28     type: ./neutron-base.yaml
29
30 outputs:
31   role_data:
32     description: Role data for the Neutron Metadata agent service.
33     value:
34       service_name: neutron_metadata
35       config_settings:
36         map_merge:
37           - get_attr: [NeutronBase, role_data, config_settings]
38           - neutron::agents::metadata::shared_secret: {get_param: NeutronMetadataProxySharedSecret}
39             neutron::agents::metadata::metadata_workers: {get_param: NeutronWorkers}
40             neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
41             neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
42       step_config: |
43         include tripleo::profile::base::neutron::metadata