Bump template version for all templates to "ocata"
[apex-tripleo-heat-templates.git] / puppet / services / neutron-ovs-agent.yaml
1 heat_template_version: ocata
2
3 description: >
4   OpenStack Neutron OVS 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   NeutronEnableL2Pop:
22     type: string
23     description: >
24         Enable/disable the L2 population feature in the Neutron agents.
25     default: "False"
26   NeutronBridgeMappings:
27     description: >
28       The OVS logical->physical bridge mappings to use. See the Neutron
29       documentation for details. Defaults to mapping br-ex - the external
30       bridge on hosts - to a physical name 'datacentre' which can be used
31       to create provider networks (and we use this for the default floating
32       network) - if changing this either use different post-install network
33       scripts or be sure to keep 'datacentre' as a mapping network name.
34     type: comma_delimited_list
35     default: "datacentre:br-ex"
36   NeutronTunnelTypes:
37     default: 'vxlan'
38     description: |
39         The tunnel types for the Neutron tenant network.
40     type: comma_delimited_list
41   NeutronAgentExtensions:
42     default: "qos"
43     description: |
44         Comma-separated list of extensions enabled for the Neutron agents.
45     type: comma_delimited_list
46   NeutronEnableDVR:
47     default: False
48     description: |
49       Enable support for distributed routing in the OVS Agent.
50     type: boolean
51   NeutronEnableARPResponder:
52     default: false
53     description: |
54       Enable ARP responder feature in the OVS Agent.
55     type: boolean
56   MonitoringSubscriptionNeutronOvs:
57     default: 'overcloud-neutron-ovs-agent'
58     type: string
59   NeutronOVSFirewallDriver:
60     default: ''
61     description: |
62       Configure the classname of the firewall driver to use for implementing
63       security groups. Possible values depend on system configuration. Some
64       examples are: noop, openvswitch, iptables_hybrid. The default value of an
65       empty string will result in a default supported configuration.
66     type: string
67   NeutronOpenVswitchAgentLoggingSource:
68     type: json
69     default:
70       tag: openstack.neutron.agent.openvswitch
71       path: /var/log/neutron/openvswitch-agent.log
72
73 resources:
74
75   NeutronBase:
76     type: ./neutron-base.yaml
77     properties:
78       ServiceNetMap: {get_param: ServiceNetMap}
79       DefaultPasswords: {get_param: DefaultPasswords}
80       EndpointMap: {get_param: EndpointMap}
81
82 outputs:
83   role_data:
84     description: Role data for the Neutron OVS agent service.
85     value:
86       service_name: neutron_ovs_agent
87       monitoring_subscription: {get_param: MonitoringSubscriptionNeutronOvs}
88       logging_source: {get_param: NeutronOpenVswitchAgentLoggingSource}
89       logging_groups:
90         - neutron
91       config_settings:
92         map_merge:
93           - get_attr: [NeutronBase, role_data, config_settings]
94           - neutron::agents::ml2::ovs::l2_population: {get_param: NeutronEnableL2Pop}
95             neutron::agents::ml2::ovs::enable_distributed_routing: {get_param: NeutronEnableDVR}
96             neutron::agents::ml2::ovs::arp_responder: {get_param: NeutronEnableARPResponder}
97             neutron::agents::ml2::ovs::bridge_mappings: {get_param: NeutronBridgeMappings}
98             neutron::agents::ml2::ovs::tunnel_types: {get_param: NeutronTunnelTypes}
99             neutron::agents::ml2::ovs::extensions: {get_param: NeutronAgentExtensions}
100             # NOTE: bind IP is found in Heat replacing the network name with the
101             # local node IP for the given network; replacement examples
102             # (eg. for internal_api):
103             # internal_api -> IP
104             # internal_api_uri -> [IP]
105             # internal_api_subnet - > IP/CIDR
106             neutron::agents::ml2::ovs::local_ip: {get_param: [ServiceNetMap, NeutronTenantNetwork]}
107             neutron::agents::ml2::ovs::firewall_driver: {get_param: NeutronOVSFirewallDriver}
108             tripleo.neutron_ovs_agent.firewall_rules:
109               '118 neutron vxlan networks':
110                 proto: 'udp'
111                 dport: 4789
112               '136 neutron gre networks':
113                 proto: 'gre'
114       step_config: |
115         include ::tripleo::profile::base::neutron::ovs