Merge "Define step input as a Number type"
[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   NeutronMetadataAgentLoggingSource:
37     type: json
38     default:
39       tag: openstack.neutron.agent.metadata
40       path: /var/log/neutron/metadata-agent.log
41
42 resources:
43
44   NeutronBase:
45     type: ./neutron-base.yaml
46     properties:
47       ServiceNetMap: {get_param: ServiceNetMap}
48       DefaultPasswords: {get_param: DefaultPasswords}
49       EndpointMap: {get_param: EndpointMap}
50
51 outputs:
52   role_data:
53     description: Role data for the Neutron Metadata agent service.
54     value:
55       service_name: neutron_metadata
56       monitoring_subscription: {get_param: MonitoringSubscriptionNeutronMetadata}
57       logging_source: {get_param: NeutronMetadataAgentLoggingSource}
58       logging_groups:
59         - neutron
60       config_settings:
61         map_merge:
62           - get_attr: [NeutronBase, role_data, config_settings]
63           - neutron::agents::metadata::shared_secret: {get_param: NeutronMetadataProxySharedSecret}
64             neutron::agents::metadata::metadata_workers: {get_param: NeutronWorkers}
65             neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
66             neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneAdmin, uri_no_suffix] }
67             neutron::agents::metadata::auth_tenant: 'service'
68             neutron::agents::metadata::metadata_ip: '"%{hiera(\"nova_metadata_vip\")}"'
69       step_config: |
70         include tripleo::profile::base::neutron::metadata