summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--manifests/init.pp11
1 files changed, 6 insertions, 5 deletions
diff --git a/manifests/init.pp b/manifests/init.pp
index f12251e..904540b 100644
--- a/manifests/init.pp
+++ b/manifests/init.pp
@@ -3,6 +3,11 @@ class rsyslog {
ensure => present,
}
+ service { 'rsyslog' :
+ ensure => running,
+ require => Package['rsyslog'],
+ }
+
file { '/etc/rsyslog.d/00-anon.conf':
ensure => present,
owner => 'root',
@@ -10,10 +15,6 @@ class rsyslog {
mode => '0644',
source => 'puppet:///modules/rsyslog/anon.conf',
require => Package['rsyslog'],
- }
-
- service { 'rsyslog' :
- ensure => running,
- require => File['/etc/rsyslog.d/00-anon.conf'],
+ notify => Service['rsyslog'],
}
}