Merge "Adding keystone parameters for Tacker"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-metadata.yaml
1 heat_template_version: ocata
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: ''
27     description: |
28       Sets the number of worker processes for the neutron metadata agent. The
29       default value results in the configuration being left unset and a
30       system-dependent default will be chosen (usually the number of
31       processors). Please note that this can result in a large number of
32       processes and memory consumption on systems with a large core count. On
33       such systems it is recommended that a non-default value be selected that
34       matches the load requirements.
35     type: string
36   NeutronPassword:
37     description: The password for the neutron service and db account, used by neutron agents.
38     type: string
39     hidden: true
40   MonitoringSubscriptionNeutronMetadata:
41     default: 'overcloud-neutron-metadata'
42     type: string
43   NeutronMetadataAgentLoggingSource:
44     type: json
45     default:
46       tag: openstack.neutron.agent.metadata
47       path: /var/log/neutron/metadata-agent.log
48
49 resources:
50
51   NeutronBase:
52     type: ./neutron-base.yaml
53     properties:
54       ServiceNetMap: {get_param: ServiceNetMap}
55       DefaultPasswords: {get_param: DefaultPasswords}
56       EndpointMap: {get_param: EndpointMap}
57
58 outputs:
59   role_data:
60     description: Role data for the Neutron Metadata agent service.
61     value:
62       service_name: neutron_metadata
63       monitoring_subscription: {get_param: MonitoringSubscriptionNeutronMetadata}
64       logging_source: {get_param: NeutronMetadataAgentLoggingSource}
65       logging_groups:
66         - neutron
67       config_settings:
68         map_merge:
69           - get_attr: [NeutronBase, role_data, config_settings]
70           - neutron::agents::metadata::shared_secret: {get_param: NeutronMetadataProxySharedSecret}
71             neutron::agents::metadata::metadata_workers: {get_param: NeutronWorkers}
72             neutron::agents::metadata::auth_password: {get_param: NeutronPassword}
73             neutron::agents::metadata::auth_url: { get_param: [EndpointMap, KeystoneInternal, uri_no_suffix] }
74             neutron::agents::metadata::auth_tenant: 'service'
75             neutron::agents::metadata::metadata_ip: "%{hiera('nova_metadata_vip')}"
76       step_config: |
77         include tripleo::profile::base::neutron::metadata
78       upgrade_tasks:
79         - name: "PreUpgrade step0,validation: Check service neutron-metadata-agent is running"
80           shell: /usr/bin/systemctl show 'neutron-metadata-agent' --property ActiveState | grep '\bactive\b'
81           tags: step0,validation
82         - name: Stop neutron_metadata service
83           tags: step1
84           service: name=neutron-metadata-agent state=stopped