Restart slapd on TLS cert renew
[mirror/dsa-puppet.git] / modules / roles / manifests / static_master.pp
index 73f74c8..c2aec64 100644 (file)
@@ -13,4 +13,23 @@ class roles::static_master {
        file { '/etc/static-clients.conf':
                content => template('roles/static-mirroring/static-clients.conf.erb'),
        }
+
+       # export some information for the onion.debian.org build
+       if $::hostname in [dillon] {
+               file { '/srv/puppet.debian.org':
+                       ensure => directory
+               }
+               file { '/srv/puppet.debian.org/puppet-facts':
+                       ensure => directory
+               }
+               concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml':
+                       notify  => Exec["rebuild-onion-website"],
+               }
+               Concat::Fragment <<| tag == "onionbalance-services.yaml" |>>
+
+               exec { 'rebuild-onion-website':
+                       command => '/bin/su - staticsync -c \'make -C /srv/onion-master.debian.org\'',
+                       refreshonly => true,
+               }
+       }
 }