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