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
This commit is contained in:
parent
b0dee2a61e
commit
2e2211cf69
@ -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,
|
||||
|
@ -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,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user