include roles::static_source
- package { 'libapache2-mod-macro':
- ensure => installed,
- }
+ package { 'libapache2-mod-macro': ensure => installed, }
+ package { 'libapache2-mod-geoip': ensure => installed, }
+ package { 'geoip-database': ensure => installed, }
apache2::module { 'macro': require => Package['libapache2-mod-macro']; }
apache2::module { 'rewrite': }
apache2::module { 'expires': }
-
- apache2::config { "local-static-vhost.conf":
- source => "puppet:///modules/roles/static-mirroring/static-vhost.conf",
- }
+ apache2::module { 'geoip': require => [Package['libapache2-mod-geoip'], Package['geoip-database']]; }
file { '/usr/local/bin/static-mirror-run':
source => 'puppet:///modules/roles/static-mirroring/static-mirror-run',
default => '*:80',
}
+ apache2::config { "local-static-vhost.conf":
+ content => template('roles/static-mirroring/static-vhost.conf.erb'),
+ }
+
apache2::site { '010-planet.debian.org':
site => 'planet.debian.org',
content => template('roles/static-mirroring/vhost/planet.debian.org.erb'),
}
- apache2::site { '10-static-vhosts-simple':
+ apache2::site { '010-static-vhosts-simple':
site => "static-vhosts-simple",
content => template('roles/static-mirroring/vhost/static-vhosts-simple.erb'),
}