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