diff --git a/modules/openstack_project/manifests/template.pp b/modules/openstack_project/manifests/template.pp index 3e23296479..d13e07eb51 100644 --- a/modules/openstack_project/manifests/template.pp +++ b/modules/openstack_project/manifests/template.pp @@ -58,20 +58,6 @@ class openstack_project::template ( 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 file { '/etc/rsyslog.d/50-default.conf': 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 # python tracebacks with syslog. file { '/etc/rsyslog.d/99-maxsize.conf':