diff options
author | Micah <micah@riseup.net> | 2016-03-10 19:07:46 +0000 |
---|---|---|
committer | Micah <micah@riseup.net> | 2016-03-10 19:07:46 +0000 |
commit | f062559072e7d4281c114d799208a3d093a74a47 (patch) | |
tree | f9e7cdaa3d14a04be260f5cc7f5db132735e53ef /manifests/debian.pp | |
parent | bad75052820f221df575a1942417712e35ab1af7 (diff) | |
parent | 329c982fe6daec3ec5ac519eb623acc522d84d3b (diff) |
Merge branch 'improve_resource_ordering' into 'master'
Improve resource ordering
See merge request !21
Diffstat (limited to 'manifests/debian.pp')
-rw-r--r-- | manifests/debian.pp | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/manifests/debian.pp b/manifests/debian.pp index 9b1f7e7..39af973 100644 --- a/manifests/debian.pp +++ b/manifests/debian.pp @@ -21,11 +21,13 @@ class nagios::debian inherits nagios::base { notify => Service['nagios'], owner => root, group => root, - mode => '0644'; + mode => '0644', + require => Package['nagios']; "${nagios::defaults::vars::int_cfgdir}/stylesheets": ensure => directory, purge => false, - recurse => true; + recurse => true, + require => Package['nagios']; } if $nagios::allow_external_cmd { @@ -34,16 +36,19 @@ class nagios::debian inherits nagios::base { unless => 'dpkg-statoverride --list nagios www-data 2710 /var/lib/nagios3/rw && dpkg-statoverride --list nagios nagios 751 /var/lib/nagios3', logoutput => false, notify => Service['nagios'], + require => Package['nagios'], } exec { 'nagios_external_cmd_perms_1': command => 'chmod 0751 /var/lib/nagios3 && chown nagios:nagios /var/lib/nagios3', unless => 'test "`stat -c "%a %U %G" /var/lib/nagios3`" = "751 nagios nagios"', notify => Service['nagios'], + require => Package['nagios'], } exec { 'nagios_external_cmd_perms_2': command => 'chmod 2751 /var/lib/nagios3/rw && chown nagios:www-data /var/lib/nagios3/rw', unless => 'test "`stat -c "%a %U %G" /var/lib/nagios3/rw`" = "2751 nagios www-data"', notify => Service['nagios'], + require => Package['nagios'], } } } |