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

Side by Side 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.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 class nagios::client($server_address) { 1 class nagios::client($server_address) {
2 package {['nagios-nrpe-server', 'tcpdump']: ensure => present} 2
3 ensure_packages([
4 'nagios-nrpe-server',
5 'sudo',
6 'tcpdump',
7 ])
3 8
4 file {'/etc/nagios/nrpe.cfg': 9 file {'/etc/nagios/nrpe.cfg':
5 mode => 644, 10 mode => 644,
6 owner => root, 11 owner => root,
7 group => root, 12 group => root,
8 content => template('nagios/nrpe.cfg.erb'), 13 content => template('nagios/nrpe.cfg.erb'),
9 require => Package['nagios-nrpe-server'], 14 require => Package['nagios-nrpe-server'],
10 notify => Service['nagios-nrpe-server'] 15 notify => Service['nagios-nrpe-server']
11 } 16 }
12 17
13 service {'nagios-nrpe-server': 18 service {'nagios-nrpe-server':
14 ensure => running, 19 ensure => running,
15 enable => true, 20 enable => true,
16 subscribe => File['/etc/nagios/nrpe.cfg'] 21 subscribe => File['/etc/nagios/nrpe.cfg']
17 } 22 }
18 23
19 file {'/etc/sudoers.d/nagios': 24 file {'/etc/sudoers.d/nagios':
20 ensure => present, 25 ensure => present,
21 owner => root, 26 owner => root,
22 group => root, 27 group => root,
23 mode => 0440, 28 mode => 0440,
24 source => 'puppet:///modules/nagios/sudoers' 29 source => 'puppet:///modules/nagios/sudoers',
30 require => Package['sudo'],
25 } 31 }
26 32
27 file {'/usr/lib/nagios/plugins/check_bandwidth': 33 file {'/usr/lib/nagios/plugins/check_bandwidth':
28 ensure => present, 34 ensure => present,
29 mode => 755, 35 mode => 755,
30 owner => root, 36 owner => root,
31 group => root, 37 group => root,
32 source => 'puppet:///modules/nagios/check_bandwidth', 38 source => 'puppet:///modules/nagios/check_bandwidth',
33 require => [ 39 require => [
34 Package['nagios-nrpe-server'], 40 Package['nagios-nrpe-server'],
(...skipping 12 matching lines...) Expand all
47 53
48 file {'/usr/lib/nagios/plugins/check_memory': 54 file {'/usr/lib/nagios/plugins/check_memory':
49 ensure => present, 55 ensure => present,
50 mode => 755, 56 mode => 755,
51 owner => root, 57 owner => root,
52 group => root, 58 group => root,
53 source => 'puppet:///modules/nagios/check_memory', 59 source => 'puppet:///modules/nagios/check_memory',
54 require => Package['nagios-nrpe-server'] 60 require => Package['nagios-nrpe-server']
55 } 61 }
56 } 62 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld