start using nagios::server again, move cert setup there
authorPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 08:56:10 +0000 (10:56 +0200)
committerPeter Palfrader <peter@palfrader.org>
Fri, 1 Jun 2018 08:56:10 +0000 (10:56 +0200)
modules/nagios/manifests/server.pp
modules/roles/manifests/init.pp

index 314dfb0..ab58405 100644 (file)
@@ -1,4 +1,9 @@
 class nagios::server {
+       ssl::service { 'nagios.debian.org':
+               notify  => Exec['service apache2 reload'],
+               key => true,
+       }
+
        concat::fragment { 'dsa-puppet-stuff--nagios--restart-stale-icinga':
                target => '/etc/cron.d/dsa-puppet-stuff',
                order  => '010',
index 864eb49..e6d6d06 100644 (file)
@@ -17,11 +17,7 @@ class roles {
        }
 
        if has_role('nagiosmaster') {
-       #       include nagios::server
-               ssl::service { 'nagios.debian.org':
-                       notify  => Exec['service apache2 reload'],
-                       key => true,
-               }
+               include nagios::server
        }
 
        # XXX: turn this into a real role