system-config/modules/openstack_project/manifests/server.pp
Russell Bryant 2e2211cf69 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
2013-07-18 14:44:51 -04:00

47 lines
1.4 KiB
Puppet

# == Class: openstack_project::server
#
# 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 = [],
$certname = $::fqdn
) {
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,
}
class { 'exim':
sysadmin => $sysadmins,
}
if $::osfamily == 'Debian' {
# Custom rsyslog config to disable /dev/xconsole noise on Debuntu servers
file { '/etc/rsyslog.d/50-default.conf':
ensure => present,
owner => 'root',
group => 'root',
mode => '0644',
source =>
'puppet:///modules/openstack_project/rsyslog.d_50-default.conf',
replace => true,
}
service { 'rsyslog':
ensure => running,
hasrestart => true,
subscribe => File['/etc/rsyslog.d/50-default.conf'],
}
# Ubuntu installs their whoopsie package by default, but it eats through
# memory and we don't need it on servers
package { 'whoopsie':
ensure => absent,
}
}
}