3 # each component defines exactly one static master. Content is copied from the source host
4 # to the master, and from there to all the mirrors.
6 class roles::static_master {
7 include roles::static::base
8 include roles::static::srvdir
10 file { '/usr/local/bin/static-master-run':
11 source => 'puppet:///modules/roles/static-mirroring/static-master-run',
14 file { '/usr/local/bin/static-master-update-component':
15 source => 'puppet:///modules/roles/static-mirroring/static-master-update-component',
18 file { '/etc/static-clients.conf':
19 content => template('roles/static-mirroring/static-clients.conf.erb'),
22 file { '/home/staticsync/static-master':
24 target => '/srv/static.debian.org',
26 file { '/srv/static.debian.org/master':
29 owner => 'staticsync',
30 group => 'staticsync',
33 # export some information for the onion.debian.org build
34 if $::hostname in [dillon] {
35 file { '/srv/puppet.debian.org':
38 file { '/srv/puppet.debian.org/puppet-facts':
41 concat { '/srv/puppet.debian.org/puppet-facts/onionbalance-services.yaml':
42 notify => Exec['rebuild-onion-website'],
44 Concat::Fragment <<| tag == 'onionbalance-services.yaml' |>>
46 exec { 'rebuild-onion-website':
47 command => '/bin/su - staticsync -c \'make -C /srv/onion-master.debian.org\'',