nagios: install some packages and define service
authorPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 09:03:41 +0000 (11:03 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 09:03:41 +0000 (11:03 +0200)
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',