Add DefaultPasswords to composable services
[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
34 resources:
35
36   NeutronBase:
37     type: ./neutron-base.yaml
38     properties:
39       ServiceNetMap: {get_param: ServiceNetMap}
40       DefaultPasswords: {get_param: DefaultPasswords}
41       EndpointMap: {get_param: EndpointMap}
42
43 outputs:
44   role_data:
45     description: Role data for the Neutron Metadata agent service.
46     value:
47       service_name: neutron_metadata
48       config_settings:
49         map_merge:
50           - get_attr: [NeutronBase, role_data, config_settings]
51           - neutron::agents::metadata::shared_secret: {get_param: NeutronMetadataProxySharedSecret}
52             neutron::agents::metadata::metadata_workers: {get_param: NeutronWorkers}
53             neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
54             neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
55             neutron::agents::metadata::auth_tenant: 'service'
56       step_config: |
57         include tripleo::profile::base::neutron::metadata