OLD | NEW |
1 class nagios::server( | 1 class nagios::server( |
2 $domain, | 2 $domain, |
3 $certificate, | 3 $certificate, |
4 $private_key, | 4 $private_key, |
5 $is_default=false, | 5 $is_default=false, |
6 $htpasswd_source, | 6 $htpasswd_source, |
7 $admins | 7 $admins |
8 ) { | 8 ) { |
9 | 9 |
10 File { | 10 File { |
(...skipping 13 matching lines...) Expand all Loading... |
24 source => 'puppet:///modules/nagios/site.conf', | 24 source => 'puppet:///modules/nagios/site.conf', |
25 is_default => $is_default, | 25 is_default => $is_default, |
26 certificate => $certificate, | 26 certificate => $certificate, |
27 private_key => $private_key, | 27 private_key => $private_key, |
28 log => 'access_log_monitoring' | 28 log => 'access_log_monitoring' |
29 } | 29 } |
30 | 30 |
31 spawn-fcgi::php-pool {'global': | 31 spawn-fcgi::php-pool {'global': |
32 ensure => present, | 32 ensure => present, |
33 socket => '/tmp/php-fastcgi.sock', | 33 socket => '/tmp/php-fastcgi.sock', |
34 children => '3' | 34 children => '3', |
| 35 require => Package['php5-cgi'] |
35 } | 36 } |
36 | 37 |
37 service {'nagios3': | 38 service {'nagios3': |
38 ensure => running, | 39 ensure => running, |
39 enable => true, | 40 enable => true, |
40 require => [Package['nagios3'], Package['pnp4nagios']] | 41 require => [Package['nagios3'], Package['pnp4nagios']] |
41 } | 42 } |
42 | 43 |
43 service {'apache2': | 44 service {'apache2': |
44 ensure => stopped, | 45 ensure => stopped, |
(...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 file {['/etc/nagios3/conf.d/contacts.cfg', | 140 file {['/etc/nagios3/conf.d/contacts.cfg', |
140 '/etc/nagios3/conf.d/contactgroups.cfg', | 141 '/etc/nagios3/conf.d/contactgroups.cfg', |
141 '/etc/nagios3/conf.d/commands.cfg', | 142 '/etc/nagios3/conf.d/commands.cfg', |
142 '/etc/nagios3/conf.d/hosts.cfg', | 143 '/etc/nagios3/conf.d/hosts.cfg', |
143 '/etc/nagios3/conf.d/hostgroups.cfg', | 144 '/etc/nagios3/conf.d/hostgroups.cfg', |
144 '/etc/nagios3/conf.d/services.cfg']: | 145 '/etc/nagios3/conf.d/services.cfg']: |
145 require => Package['nagios3'], | 146 require => Package['nagios3'], |
146 notify => Service['nagios3'] | 147 notify => Service['nagios3'] |
147 } | 148 } |
148 } | 149 } |
OLD | NEW |