1 class roles::static_mirror {
3 include roles::static_source
5 package { 'libapache2-mod-macro':
9 apache2::module { 'macro': require => Package['libapache2-mod-macro']; }
10 apache2::module { 'rewrite': }
11 apache2::module { 'expires': }
13 apache2::config { "local-static-vhost.conf":
14 source => "puppet:///modules/roles/static-mirroring/static-vhost.conf",
17 file { '/usr/local/bin/static-mirror-run':
18 source => 'puppet:///modules/roles/static-mirroring/static-mirror-run',
22 file { '/srv/static.debian.org':
29 file { '/etc/cron.d/puppet-static-mirror':
30 content => "PATH=/usr/local/bin:/usr/bin:/bin\n@reboot staticsync sleep 60; static-mirror-run --one-stage /srv/static.debian.org bizet.debian.org:-live- > /dev/null\n",
33 $vhost_listen = $::hostname ? {
34 klecker => '130.89.148.14:80 [2001:610:1908:b000::148:14]:80',
38 apache2::site { '010-planet.debian.org':
39 site => 'planet.debian.org',
40 content => template('roles/static-mirroring/vhost/planet.debian.org.erb'),
43 apache2::site { '10-static-vhosts-simple':
44 site => "static-vhosts-simple",
45 content => template('roles/static-mirroring/vhost/static-vhosts-simple.erb'),