Fix opening public UDP ports

The variable containing the list of UDP ports was defined after
it was being used.  Therefore, public UDP ports were not actually
being open (eg, 5060 on pbx).  Move the definition to a point
before it was being used.

Change-Id: I0411c919132f51bbd033a614f961bea36ea4f6c1
This commit is contained in:
James E. Blair 2015-05-16 19:37:22 -07:00
parent 644c5133a7
commit a88ebb863f
1 changed files with 17 additions and 17 deletions

View File

@ -34,6 +34,23 @@ class openstack_project::template (
trusted_ssh_source => $puppetmaster_server,
}
if ( $afs ) {
$all_udp = concat(
$iptables_public_udp_ports, [7001])
class { 'openafs::client':
cell => 'openstack.org',
realm => 'OPENSTACK.ORG',
admin_server => 'kdc.openstack.org',
kdcs => [
'kdc01.openstack.org',
'kdc02.openstack.org',
],
}
} else {
$all_udp = $iptables_public_udp_ports
}
class { 'iptables':
public_tcp_ports => $iptables_public_tcp_ports,
public_udp_ports => $all_udp,
@ -57,23 +74,6 @@ class openstack_project::template (
}
}
if ( $afs ) {
$all_udp = concat(
$iptables_public_udp_ports, [7001])
class { 'openafs::client':
cell => 'openstack.org',
realm => 'OPENSTACK.ORG',
admin_server => 'kdc.openstack.org',
kdcs => [
'kdc01.openstack.org',
'kdc02.openstack.org',
],
}
} else {
$all_udp = $iptables_public_udp_ports
}
class {'openstack_project::users_install':
install_users => $install_users
}