nagios master: apache vhost
[mirror/dsa-puppet.git] / modules / nagios / manifests / server.pp
1 class nagios::server {
2         include apache2
3         include apache2::ssl
4         include apache2::auth_digest
5         include apache2::authn_anon
6         include apache2::proxy_http
7
8         ssl::service { 'nagios.debian.org':
9                 notify  => Exec['service apache2 reload'],
10                 key => true,
11         }
12         apache2::site { "10-nagios.debian.org":
13                 site => "nagios.debian.org",
14                 content => template('nagios/nagios.debian.org.conf.erb'),
15         }
16
17         concat::fragment { 'dsa-puppet-stuff--nagios--restart-stale-icinga':
18                 target => '/etc/cron.d/dsa-puppet-stuff',
19                 order  => '010',
20                 content  => @(EOF)
21                         */15 * * * * root find /var/lib/icinga/status.dat -mmin +20 | grep -q . && service icinga restart
22                         | EOF
23         }
24 }