From 2e2211cf6930cbf4dffc5d07ac4eec03ca7aa844 Mon Sep 17 00:00:00 2001 From: Russell Bryant Date: Wed, 17 Jul 2013 15:25:56 +0000 Subject: [PATCH] Allow specification of public UDP ports The iptables class allowed specifying a list of public UDP ports, just like it has support for TCP. However, a couple of places needed to be updated to pass through the UDP port list to make it usable. Change-Id: I00764bf1d7baff862fa51a6cd03211fe9a29ecdd --- modules/openstack_project/manifests/server.pp | 2 ++ modules/openstack_project/manifests/template.pp | 2 ++ 2 files changed, 4 insertions(+) diff --git a/modules/openstack_project/manifests/server.pp b/modules/openstack_project/manifests/server.pp index a5a30a6ff6..8769b4828b 100644 --- a/modules/openstack_project/manifests/server.pp +++ b/modules/openstack_project/manifests/server.pp @@ -3,6 +3,7 @@ # A server that we expect to run for some time class openstack_project::server ( $iptables_public_tcp_ports = [], + $iptables_public_udp_ports = [], $iptables_rules4 = [], $iptables_rules6 = [], $sysadmins = [], @@ -10,6 +11,7 @@ class openstack_project::server ( ) { class { 'openstack_project::template': iptables_public_tcp_ports => $iptables_public_tcp_ports, + iptables_public_udp_ports => $iptables_public_udp_ports, iptables_rules4 => $iptables_rules4, iptables_rules6 => $iptables_rules6, certname => $certname, diff --git a/modules/openstack_project/manifests/template.pp b/modules/openstack_project/manifests/template.pp index f5528b85be..7ef6e2f611 100644 --- a/modules/openstack_project/manifests/template.pp +++ b/modules/openstack_project/manifests/template.pp @@ -4,6 +4,7 @@ # class openstack_project::template ( $iptables_public_tcp_ports = [], + $iptables_public_udp_ports = [], $iptables_rules4 = [], $iptables_rules6 = [], $install_users = true, @@ -15,6 +16,7 @@ class openstack_project::template ( class { 'iptables': public_tcp_ports => $iptables_public_tcp_ports, + public_udp_ports => $iptables_public_udp_ports, rules4 => $iptables_rules4, rules6 => $iptables_rules6, }