1 class roles::static_master {
2 include roles::static_base
3 include roles::static_srvdir
5 file { '/usr/local/bin/static-master-run':
6 source => 'puppet:///modules/roles/static-mirroring/static-master-run',
9 file { '/usr/local/bin/static-master-update-component':
10 source => 'puppet:///modules/roles/static-mirroring/static-master-update-component',
13 file { '/etc/static-clients.conf':
14 content => template('roles/static-mirroring/static-clients.conf.erb'),
17 file { "/home/staticsync/static-master":
19 target => '/srv/static.debian.org',
21 file { '/srv/static.debian.org/master':
24 owner => 'staticsync',
25 group => 'staticsync',
28 # export some information for the onion.debian.org build
29 if $::hostname in [dillon] {
30 file { '/srv/puppet.debian.org':
33 file { '/srv/puppet.debian.org/puppet-facts':
36 concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml':
37 notify => Exec["rebuild-onion-website"],
39 Concat::Fragment <<| tag == "onionbalance-services.yaml" |>>
41 exec { 'rebuild-onion-website':
42 command => '/bin/su - staticsync -c \'make -C /srv/onion-master.debian.org\'',