X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fstatic_master.pp;h=2f786a4aa3a1df5622c2ed16425175f8cf3d11bf;hb=07307bc8fa2416ce3b972d891b6fa53d93992a87;hp=cabec645b76b4b0fbb0ac25ba54ad9e8650b894c;hpb=04b5e988827426548ea98b4321392704462c0064;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/static_master.pp b/modules/roles/manifests/static_master.pp index cabec645b..2f786a4aa 100644 --- a/modules/roles/manifests/static_master.pp +++ b/modules/roles/manifests/static_master.pp @@ -1,40 +1,5 @@ -class roles::static_master { - include roles::static_base - include roles::static_srvdir - - file { '/usr/local/bin/static-master-run': - source => 'puppet:///modules/roles/static-mirroring/static-master-run', - mode => '0555', - } - file { '/usr/local/bin/static-master-update-component': - source => 'puppet:///modules/roles/static-mirroring/static-master-update-component', - mode => '0555', - } - file { '/etc/static-clients.conf': - content => template('roles/static-mirroring/static-clients.conf.erb'), - } - - file { "/home/staticsync/static-master": - ensure => link, - target => '/srv/static.debian.org', - } - - # 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, - } - } +# +class roles::static_master( +) { + include staticsync::static_master }