nagios: install some packages and define service
[mirror/dsa-puppet.git] / modules / nagios / manifests / server.pp
index 22b681f..b753441 100644 (file)
@@ -12,6 +12,19 @@ class nagios::server {
                content => template('nagios/nagios.debian.org.conf.erb'),
        }
 
+       ensure_packages( [
+               'icinga',
+               'make',
+               'monitoring-plugins',
+               'nagios-nrpe-plugin',
+               ], { ensure => 'installed' })
+
+       service { 'icinga':
+               ensure => running,
+               require => Package['icinga'],
+       }
+
+
        concat::fragment { 'dsa-puppet-stuff--nagios--restart-stale-icinga':
                target => '/etc/cron.d/dsa-puppet-stuff',
                order  => '010',