Index: modules/nagios/manifests/client.pp |
=================================================================== |
--- a/modules/nagios/manifests/client.pp |
+++ b/modules/nagios/manifests/client.pp |
@@ -1,33 +1,44 @@ |
class nagios::client($server_address) { |
- package {['nagios-nrpe-server', 'bwm-ng']: ensure => present} |
+ package {['nagios-nrpe-server', 'tcpdump']: ensure => present} |
file {'/etc/nagios/nrpe.cfg': |
mode => 644, |
owner => root, |
group => root, |
content => template('nagios/nrpe.cfg.erb'), |
require => Package['nagios-nrpe-server'], |
notify => Service['nagios-nrpe-server'] |
} |
service {'nagios-nrpe-server': |
ensure => running, |
enable => true, |
subscribe => File['/etc/nagios/nrpe.cfg'] |
} |
+ file {'/etc/sudoers.d/nagios': |
+ ensure => present, |
+ owner => root, |
+ group => root, |
+ mode => 0440, |
+ source => 'puppet:///modules/nagios/sudoers' |
+ } |
+ |
file {'/usr/lib/nagios/plugins/check_bandwidth': |
ensure => present, |
mode => 755, |
owner => root, |
group => root, |
source => 'puppet:///modules/nagios/check_bandwidth', |
- require => Package['nagios-nrpe-server'] |
+ require => [ |
+ Package['nagios-nrpe-server'], |
+ File['/etc/sudoers.d/nagios'], |
+ ] |
} |
file {'/usr/lib/nagios/plugins/check_connections': |
ensure => present, |
mode => 755, |
owner => root, |
group => root, |
source => 'puppet:///modules/nagios/check_connections', |