X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Froles%2Fmanifests%2Fstatic_master.pp;h=2f786a4aa3a1df5622c2ed16425175f8cf3d11bf;hb=07307bc8fa2416ce3b972d891b6fa53d93992a87;hp=6a36ed3fc5e13b62a4514bbd56ed72228ef09b34;hpb=9bfd3af912d4c41d971a2a0198c58607924f1b26;p=mirror%2Fdsa-puppet.git diff --git a/modules/roles/manifests/static_master.pp b/modules/roles/manifests/static_master.pp index 6a36ed3fc..2f786a4aa 100644 --- a/modules/roles/manifests/static_master.pp +++ b/modules/roles/manifests/static_master.pp @@ -1,38 +1,5 @@ -# static master # -# each component defines exactly one static master. Content is copied from the source host -# to the master, and from there to all the mirrors. -# -class roles::static_master { - include roles::static::base - include roles::static::srvdir - - # masters need to talk to mirrors and sources and themselves - class { 'roles::static::ssh': - add_tag => [ 'staticsync-mirror', 'staticsync-source', 'staticsync-master' ], - collect_tag => 'staticsync-master', - } - - 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', - } - file { '/srv/static.debian.org/master': - ensure => directory, - mode => '0755', - owner => 'staticsync', - group => 'staticsync', - } +class roles::static_master( +) { + include staticsync::static_master }