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

Side by Side Diff: modules/nagios/manifests/client.pp

Issue 12375002: Implement more detailed bandwidth monitoring (Closed)
Patch Set: Fixed permissions Created Oct. 4, 2013, 12:47 p.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 | « modules/nagios/files/sudoers ('k') | 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', 'bwm-ng']: ensure => present} 2 package {['nagios-nrpe-server', 'tcpdump']: ensure => present}
3 3
4 file {'/etc/nagios/nrpe.cfg': 4 file {'/etc/nagios/nrpe.cfg':
5 mode => 644, 5 mode => 644,
6 owner => root, 6 owner => root,
7 group => root, 7 group => root,
8 content => template('nagios/nrpe.cfg.erb'), 8 content => template('nagios/nrpe.cfg.erb'),
9 require => Package['nagios-nrpe-server'], 9 require => Package['nagios-nrpe-server'],
10 notify => Service['nagios-nrpe-server'] 10 notify => Service['nagios-nrpe-server']
11 } 11 }
12 12
13 service {'nagios-nrpe-server': 13 service {'nagios-nrpe-server':
14 ensure => running, 14 ensure => running,
15 enable => true, 15 enable => true,
16 subscribe => File['/etc/nagios/nrpe.cfg'] 16 subscribe => File['/etc/nagios/nrpe.cfg']
17 } 17 }
18 18
19 file {'/etc/sudoers.d/nagios':
20 ensure => present,
21 owner => root,
22 group => root,
23 mode => 0440,
24 source => 'puppet:///modules/nagios/sudoers'
25 }
26
19 file {'/usr/lib/nagios/plugins/check_bandwidth': 27 file {'/usr/lib/nagios/plugins/check_bandwidth':
20 ensure => present, 28 ensure => present,
21 mode => 755, 29 mode => 755,
22 owner => root, 30 owner => root,
23 group => root, 31 group => root,
24 source => 'puppet:///modules/nagios/check_bandwidth', 32 source => 'puppet:///modules/nagios/check_bandwidth',
25 require => Package['nagios-nrpe-server'] 33 require => [
34 Package['nagios-nrpe-server'],
35 File['/etc/sudoers.d/nagios'],
36 ]
26 } 37 }
27 38
28 file {'/usr/lib/nagios/plugins/check_connections': 39 file {'/usr/lib/nagios/plugins/check_connections':
29 ensure => present, 40 ensure => present,
30 mode => 755, 41 mode => 755,
31 owner => root, 42 owner => root,
32 group => root, 43 group => root,
33 source => 'puppet:///modules/nagios/check_connections', 44 source => 'puppet:///modules/nagios/check_connections',
34 require => Package['nagios-nrpe-server'] 45 require => Package['nagios-nrpe-server']
35 } 46 }
36 47
37 file {'/usr/lib/nagios/plugins/check_memory': 48 file {'/usr/lib/nagios/plugins/check_memory':
38 ensure => present, 49 ensure => present,
39 mode => 755, 50 mode => 755,
40 owner => root, 51 owner => root,
41 group => root, 52 group => root,
42 source => 'puppet:///modules/nagios/check_memory', 53 source => 'puppet:///modules/nagios/check_memory',
43 require => Package['nagios-nrpe-server'] 54 require => Package['nagios-nrpe-server']
44 } 55 }
45 } 56 }
OLDNEW
« no previous file with comments | « modules/nagios/files/sudoers ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld