Merge "Pull rsyslog back out from the debian trap"

This commit is contained in:
Jenkins 2014-07-05 23:51:06 +00:00 committed by Gerrit Code Review
commit 20a7aeebcf

View File

@ -58,20 +58,6 @@ class openstack_project::template (
ensure => present, ensure => present,
} }
if ($::in_chroot) {
notify { 'rsyslog in chroot':
message => 'rsyslog not refreshed, running in chroot',
}
$rsyslog_notify = []
} else {
service { 'rsyslog':
ensure => running,
enable => true,
hasrestart => true,
}
$rsyslog_notify = [ Service['rsyslog'] ]
}
# Custom rsyslog config to disable /dev/xconsole noise on Debuntu servers # Custom rsyslog config to disable /dev/xconsole noise on Debuntu servers
file { '/etc/rsyslog.d/50-default.conf': file { '/etc/rsyslog.d/50-default.conf':
ensure => present, ensure => present,
@ -91,6 +77,20 @@ class openstack_project::template (
} }
} }
if ($::in_chroot) {
notify { 'rsyslog in chroot':
message => 'rsyslog not refreshed, running in chroot',
}
$rsyslog_notify = []
} else {
service { 'rsyslog':
ensure => running,
enable => true,
hasrestart => true,
}
$rsyslog_notify = [ Service['rsyslog'] ]
}
# Increase syslog message size in order to capture # Increase syslog message size in order to capture
# python tracebacks with syslog. # python tracebacks with syslog.
file { '/etc/rsyslog.d/99-maxsize.conf': file { '/etc/rsyslog.d/99-maxsize.conf':