summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2016-06-02 14:47:02 -0300
committerSilvio Rhatto <rhatto@riseup.net>2016-06-02 14:47:02 -0300
commit92ad38aac7a7740fa1a7d2855a4db86dfef4b5b3 (patch)
treee17f5abc28ed3cc20a67ebcad3583c826a55eda2
parentcb46993a90e8d8d03f77d80e789864f29042e31e (diff)
downloadpuppet-rsyslog-92ad38aac7a7740fa1a7d2855a4db86dfef4b5b3.tar.gz
puppet-rsyslog-92ad38aac7a7740fa1a7d2855a4db86dfef4b5b3.tar.bz2
Change dependency order
-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'],
}
}