Fixes missing OVS Firewall config with OpenDaylight
[apex-tripleo-heat-templates.git] / puppet / services / opendaylight-ovs.yaml
1 heat_template_version: 2016-04-08
2
3 description: >
4   OpenDaylight OVS Configuration.
5
6 parameters:
7   OpenDaylightPort:
8     default: 8081
9     description: Set opendaylight service port
10     type: number
11   OpenDaylightConnectionProtocol:
12     description: L7 protocol used for REST access
13     type: string
14     default: 'http'
15   OpenDaylightCheckURL:
16     description: URL postfix to verify ODL has finished starting up
17     type: string
18     default: 'restconf/operational/network-topology:network-topology/topology/netvirt:1'
19   OpenDaylightApiVirtualIP:
20     type: string
21     default: ''
22   OpenDaylightProviderMappings:
23     description: Mappings between logical networks and physical interfaces.
24                  Required for VLAN deployments.  For example physnet1 -> eth1.
25     type: comma_delimited_list
26     default: "datacentre:br-ex"
27   EndpointMap:
28     default: {}
29     description: Mapping of service endpoint -> protocol. Typically set
30                  via parameter_defaults in the resource registry.
31     type: json
32   ServiceNetMap:
33     default: {}
34     description: Mapping of service_name -> network name. Typically set
35                  via parameter_defaults in the resource registry.  This
36                  mapping overrides those in ServiceNetMapDefaults.
37     type: json
38   DefaultPasswords:
39     default: {}
40     type: json
41
42 outputs:
43   role_data:
44     description: Role data for the OpenDaylight service.
45     value:
46       service_name: opendaylight_ovs
47       config_settings:
48         opendaylight::odl_rest_port: {get_param: OpenDaylightPort}
49         opendaylight_check_url: {get_param: OpenDaylightCheckURL}
50         opendaylight::nb_connection_protocol: {get_param: OpenDaylightConnectionProtocol}
51         neutron::agents::ml2::ovs::local_ip: {get_param: [ServiceNetMap, NeutronTenantNetwork]}
52         neutron::plugins::ovs::opendaylight::provider_mappings:
53           str_replace:
54             template: MAPPINGS
55             params:
56               MAPPINGS: {get_param: OpenDaylightProviderMappings}
57         tripleo.opendaylight_ovs.firewall_rules:
58           '118 neutron vxlan networks':
59              proto: 'udp'
60              dport: 4789
61           '136 neutron gre networks':
62              proto: 'gre'
63       step_config: |
64         include tripleo::profile::base::neutron::plugins::ovs::opendaylight