Fix class name
[mirror/dsa-puppet.git] / modules / roles / manifests / onion_master.pp
1 # onion.debian.org website build
2 #
3 class roles::onion_master {
4   file { '/srv/puppet.debian.org':
5     ensure => directory
6   }
7   file { '/srv/puppet.debian.org/puppet-facts':
8     ensure => directory
9   }
10   concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml':
11     notify  => Exec['rebuild-onion-website'],
12   }
13   Concat::Fragment <<| tag == 'onionbalance-services.yaml' |>>
14
15   exec { 'rebuild-onion-website':
16     command => '/bin/su - staticsync -c \'make -C /srv/onion-master.debian.org\'',
17     refreshonly => true,
18   }
19 }