-Use DebianStaticMirrorVhostLine
+Include /etc/apache2/inc/static-mirror-vhost
ServerName planet.debian.org
ServerAlias planet.debian.net planeta.debian.net
ServerAdmin planet@debian.org
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",
;
- }
-
- apache2::config { 'static-mirror-macros':
- content => template('roles/static-mirroring/apache-conf-static-mirror-macros.erb'),
+ '/etc/apache2/inc':
+ ensure => directory,
+ ;
+ '/etc/apache2/inc/static-mirror-vhost':
+ content => template('roles/static-mirroring/apache-inc-static-mirror-vhost.erb'),
+ ;
}
apache2::site { '010-planet.debian.org':
+++ /dev/null
-##
-## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
-##
-
-<Macro DebianStaticMirrorVhostLine>
-<% if hostname == "klecker" -%>
- <VirtualHost 130.89.148.14:80 2001:610:1908:b000::148:14:80>
-<% else -%>
- <VirtualHost *:80>
-<% end -%>
-</Macro>
--- /dev/null
+##
+## THIS FILE IS UNDER PUPPET CONTROL. DON'T EDIT IT HERE.
+##
+
+<Macro DebianStaticMirrorVhostLine>
+<% if hostname == "klecker" -%>
+ <VirtualHost 130.89.148.14:80 2001:610:1908:b000::148:14:80>
+<% else -%>
+ <VirtualHost *:80>
+<% end -%>
+</Macro>