1d6a23716adaf6822675badcd7af50abb674e24f
[apex-tripleo-heat-templates.git] / puppet / services / neutron-l3-compute-dvr.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Neutron L3 agent for DVR enabled compute nodes
5   configured with Puppet
6
7 parameters:
8   ServiceNetMap:
9     default: {}
10     description: Mapping of service_name -> network name. Typically set
11                  via parameter_defaults in the resource registry.  This
12                  mapping overrides those in ServiceNetMapDefaults.
13     type: json
14   DefaultPasswords:
15     default: {}
16     type: json
17   EndpointMap:
18     default: {}
19     description: Mapping of service endpoint -> protocol. Typically set
20                  via parameter_defaults in the resource registry.
21     type: json
22   Debug:
23     type: string
24     default: ''
25   MonitoringSubscriptionNeutronL3Dvr:
26     default: 'overcloud-neutron-l3-dvr'
27     type: string
28   NeutronL3ComputeAgentLoggingSource:
29     type: json
30     default:
31       tag: openstack.neutron.agent.l3-compute
32       path: /var/log/neutron/l3-agent.log
33
34   # DEPRECATED: the following options are deprecated and are currently maintained
35   # for backwards compatibility. They will be removed in the Pike cycle.
36   NeutronExternalNetworkBridge:
37     description: Name of bridge used for external network traffic. Usually L2
38                  agent handles port wiring into external bridge, and hence the
39                  parameter should be unset.
40     type: string
41     default: ''
42
43 conditions:
44
45   external_network_bridge_empty: {equals : [{get_param: NeutronExternalNetworkBridge}, "''"]}
46
47 resources:
48
49   NeutronBase:
50     type: ./neutron-base.yaml
51     properties:
52       ServiceNetMap: {get_param: ServiceNetMap}
53       DefaultPasswords: {get_param: DefaultPasswords}
54       EndpointMap: {get_param: EndpointMap}
55
56 outputs:
57   role_data:
58     description: Role data for DVR L3 Agent on Compute Nodes
59     value:
60       service_name: neutron_l3_compute_dvr
61       monitoring_subscription: {get_param: MonitoringSubscriptionNeutronL3Dvr}
62       logging_source: {get_param: NeutronL3ComputeAgentLoggingSource}
63       logging_groups:
64         - neutron
65       config_settings:
66         map_merge:
67           - get_attr: [NeutronBase, role_data, config_settings]
68           - neutron::agents::l3::agent_mode : 'dvr'
69           -
70             if:
71             - external_network_bridge_empty
72             - {}
73             - neutron::agents::l3::external_network_bridge: {get_param: NeutronExternalNetworkBridge}
74       step_config: |
75         include tripleo::profile::base::neutron::l3