b8f7125626
We've seen the whoopsie process eating many gigs of virtual memory on servers, and it has a history of memory leaks. It's also more of a desktop-oriented application geared for reporting backtraces to Canonical when programs crash, so we don't need it on our servers anyway. Change-Id: I83a16b557d2601acdfcbe4c342bb05d325df77c9 Reviewed-on: https://review.openstack.org/29117 Reviewed-by: James E. Blair <corvus@inaugust.com> Reviewed-by: Clark Boylan <clark.boylan@gmail.com> Approved: Clark Boylan <clark.boylan@gmail.com> Tested-by: Jenkins
45 lines
1.3 KiB
Puppet
45 lines
1.3 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_rules4 = [],
|
|
$iptables_rules6 = [],
|
|
$sysadmins = [],
|
|
$certname = $::fqdn
|
|
) {
|
|
class { 'openstack_project::template':
|
|
iptables_public_tcp_ports => $iptables_public_tcp_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,
|
|
}
|
|
}
|
|
}
|