989e170c72feccd1a90432279833fa3df3ae0a22
[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
7         ssl::service { 'nagios.debian.org':
8                 notify  => Exec['service apache2 reload'],
9                 key => true,
10         }
11         apache2::site { "10-nagios.debian.org":
12                 site => "nagios.debian.org",
13                 content => template('nagios/nagios.debian.org.conf.erb'),
14         }
15
16         concat::fragment { 'dsa-puppet-stuff--nagios--restart-stale-icinga':
17                 target => '/etc/cron.d/dsa-puppet-stuff',
18                 order  => '010',
19                 content  => @(EOF)
20                         */15 * * * * root find /var/lib/icinga/status.dat -mmin +20 | grep -q . && service icinga restart
21                         | EOF
22         }
23 }