16e22104645cb28c1fc0b7dcc839d241b36887e8
[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   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   NeutronMetadataProxySharedSecret:
19     description: Shared secret to prevent spoofing
20     type: string
21     hidden: true
22   NeutronWorkers:
23     default: 0
24     description: Number of workers for Neutron service.
25     type: number
26   NeutronPassword:
27     description: The password for the neutron service and db account, used by neutron agents.
28     type: string
29     hidden: true
30
31 resources:
32
33   NeutronBase:
34     type: ./neutron-base.yaml
35     properties:
36       ServiceNetMap: {get_param: ServiceNetMap}
37       EndpointMap: {get_param: EndpointMap}
38
39 outputs:
40   role_data:
41     description: Role data for the Neutron Metadata agent service.
42     value:
43       service_name: neutron_metadata
44       config_settings:
45         map_merge:
46           - get_attr: [NeutronBase, role_data, config_settings]
47           - neutron::agents::metadata::shared_secret: {get_param: NeutronMetadataProxySharedSecret}
48             neutron::agents::metadata::metadata_workers: {get_param: NeutronWorkers}
49             neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
50             neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
51             neutron::agents::metadata::auth_tenant: 'service'
52       step_config: |
53         include tripleo::profile::base::neutron::metadata