Restart slapd on TLS cert renew
[mirror/dsa-puppet.git] / modules / roles / manifests / rtc.pp
index 1172344..b488e45 100644 (file)
@@ -1,11 +1,14 @@
 class roles::rtc {
 
-       ssl::service { 'www.debian.org':
-               tlsaport => 0,
-               notify  => Exec['service repro reload'],
+       ssl::service { 'debian.org':
+               tlsaport => [],
+               notify  => Service['repro'],
+               key => true,
        }
 
        ssl::service { 'sip-ws.debian.org':
+               notify  => Service['repro'],
+               key => true,
        }
 
        dnsextras::tlsa_record{ 'tlsa-xmpp':
@@ -91,9 +94,7 @@ class roles::rtc {
                ensure  => absent,
        }
 
-       exec { 'service repro reload':
-               path        => '/usr/bin:/usr/sbin:/bin:/sbin',
-               command     => 'service repro reload',
-               refreshonly => true,
+       service { 'repro':
+               ensure  => running,
        }
 }