Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: modules/nagios/manifests/client.pp

Issue 29345615: Issue 4120 - Fix nagios-client / sudo dependency (Closed)
Patch Set: Created June 7, 2016, 10:03 a.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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':
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld