f71bb77178779dc91aee39137e748aba4f5b9c6f
[apex-tripleo-heat-templates.git] / puppet / services / neutron-l3.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenStack Neutron L3 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   EndpointMap:
14     default: {}
15     description: Mapping of service endpoint -> protocol. Typically set
16                  via parameter_defaults in the resource registry.
17     type: json
18   Debug:
19     type: string
20     default: ''
21   NeutronExternalNetworkBridge:
22     description: Name of bridge used for external network traffic.
23     type: string
24     default: 'br-ex'
25   NeutronL3AgentMode:
26     description: |
27       Agent mode for L3 agent. Must be one of legacy or dvr_snat.
28     default: 'legacy'
29     type: string
30     constraints:
31       - allowed_values:
32         - legacy
33         - dvr_snat
34
35 resources:
36
37   NeutronBase:
38     type: ./neutron-base.yaml
39     properties:
40       ServiceNetMap: {get_param: ServiceNetMap}
41       EndpointMap: {get_param: EndpointMap}
42
43 outputs:
44   role_data:
45     description: Role data for the Neutron L3 agent service.
46     value:
47       service_name: neutron_l3
48       config_settings:
49         map_merge:
50           - get_attr: [NeutronBase, role_data, config_settings]
51           - neutron::agents::l3::external_network_bridge: {get_param: NeutronExternalNetworkBridge}
52             neutron::agents::l3::router_delete_namespaces: True
53             neutron::agents::l3::agent_mode : {get_param: NeutronL3AgentMode}
54       step_config: |
55         include tripleo::profile::base::neutron::l3