Index: modules/nagios/manifests/client.pp |
diff --git a/modules/nagios/manifests/client.pp b/modules/nagios/manifests/client.pp |
index a778e6bfb52af0d873a678cb055548c7fdf03b95..11d64e1fd3f30834014bcee09efa1179736b73ec 100644 |
--- a/modules/nagios/manifests/client.pp |
+++ b/modules/nagios/manifests/client.pp |
@@ -1,5 +1,10 @@ |
class nagios::client($server_address) { |
- package {['nagios-nrpe-server', 'tcpdump']: ensure => present} |
+ |
+ ensure_packages([ |
+ 'nagios-nrpe-server', |
+ 'sudo', |
+ 'tcpdump', |
+ ]) |
file {'/etc/nagios/nrpe.cfg': |
mode => 644, |
@@ -21,7 +26,8 @@ class nagios::client($server_address) { |
owner => root, |
group => root, |
mode => 0440, |
- source => 'puppet:///modules/nagios/sudoers' |
+ source => 'puppet:///modules/nagios/sudoers', |
+ require => Package['sudo'], |
} |
file {'/usr/lib/nagios/plugins/check_bandwidth': |