Merge "Add default for DeployIdentifier in nested templates"
[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   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   NeutronMetadataProxySharedSecret:
22     description: Shared secret to prevent spoofing
23     type: string
24     hidden: true
25   NeutronWorkers:
26     default: 0
27     description: Number of workers for Neutron service.
28     type: number
29   NeutronPassword:
30     description: The password for the neutron service and db account, used by neutron agents.
31     type: string
32     hidden: true
33   MonitoringSubscriptionNeutronMetadata:
34     default: 'overcloud-neutron-metadata'
35     type: string
36
37 resources:
38
39   NeutronBase:
40     type: ./neutron-base.yaml
41     properties:
42       ServiceNetMap: {get_param: ServiceNetMap}
43       DefaultPasswords: {get_param: DefaultPasswords}
44       EndpointMap: {get_param: EndpointMap}
45
46 outputs:
47   role_data:
48     description: Role data for the Neutron Metadata agent service.
49     value:
50       service_name: neutron_metadata
51       monitoring_subscription: {get_param: MonitoringSubscriptionNeutronMetadata}
52       config_settings:
53         map_merge:
54           - get_attr: [NeutronBase, role_data, config_settings]
55           - neutron::agents::metadata::shared_secret: {get_param: NeutronMetadataProxySharedSecret}
56             neutron::agents::metadata::metadata_workers: {get_param: NeutronWorkers}
57             neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
58             neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
59             neutron::agents::metadata::auth_tenant: 'service'
60             # NOTE: bind IP is found in Heat replacing the network name with the local node IP
61             # for the given network; replacement examples (eg. for internal_api):
62             # internal_api -> IP
63             # internal_api_uri -> [IP]
64             # internal_api_subnet - > IP/CIDR
65             neutron::agents::metadata::metadata_ip: {get_param: [ServiceNetMap, NeutronApiNetwork]}
66       step_config: |
67         include tripleo::profile::base::neutron::metadata