merge directory setup into ftp-archive macro
authorPeter Palfrader <peter@palfrader.org>
Mon, 30 Jan 2017 18:08:11 +0000 (19:08 +0100)
committerPeter Palfrader <peter@palfrader.org>
Mon, 30 Jan 2017 18:08:14 +0000 (19:08 +0100)
modules/apache2/files/puppet-ftp-macros
modules/roles/templates/apache-debug.mirrors.debian.org.erb
modules/roles/templates/apache-ftp.ports.debian.org.erb
modules/roles/templates/security_mirror/security.debian.org.erb

index e3c9a55..2796fec 100644 (file)
@@ -1,6 +1,12 @@
 <IfModule mod_headers.c>
   <IfModule mod_macro.c>
     <Macro ftp-archive $root>
+      <Directory $root>
+        Require all granted
+        IndexOptions NameWidth=* +SuppressDescription
+        Options +Indexes +FollowSymLinks
+        FileETag MTime Size
+      </Directory>
       <Directory $root/pool>
         <Files ?*>
           Header set Cache-Control "public, max-age=2592000"
@@ -19,3 +25,4 @@
     </Macro>
   </IfModule>
 </IfModule>
+# vim:set syn=apache:
index 5d2ac23..6f913b1 100644 (file)
         LogLevel warn
         CustomLog /var/log/apache2/debug.mirrors.debian.org-access.log privacy
 
-        <Directory /srv/mirrors/debian-debug>
-                Require all granted
-                IndexOptions NameWidth=* +SuppressDescription
-                Options +Indexes
-                Options +FollowSymLinks
-        </Directory>
         Use ftp-archive /srv/mirrors/debian-debug
 </VirtualHost>
+# vim:set syn=apache:
index 5a060ce..9aa05af 100644 (file)
         RedirectMatch "^/$" /debian-ports/
 
         Alias /debian-ports /srv/mirrors/debian-ports
-        <Directory /srv/mirrors/debian-ports>
-                Require all granted
-                IndexOptions NameWidth=* +SuppressDescription
-                Options +Indexes
-                Options +FollowSymLinks
-        </Directory>
         Use ftp-archive /srv/mirrors/debian-ports
 
         Alias /debian-ports-cd /srv/mirrors/debian-ports-cd
@@ -33,3 +27,4 @@
                 Options +FollowSymLinks
         </Directory>
 </VirtualHost>
+# vim:set syn=apache:
index dc96ff2..d4fbe9d 100644 (file)
@@ -3,14 +3,6 @@
 ## USE: git clone git+ssh://$USER@puppet.debian.org/srv/puppet.debian.org/git/dsa-puppet.git
 ##
 
-<Directory /srv/ftp.root/debian-security>
-   IndexOptions NameWidth=* +SuppressDescription
-   Options +FollowSymLinks
-   Options +Indexes
-   FileETag MTime Size
-   Require all granted
-</Directory>
-
 <VirtualHost *:80>
    ServerAdmin debian-admin@debian.org
    DocumentRoot /srv/ftp.root/debian-security
@@ -60,4 +52,4 @@
    ServerSignature On
 </VirtualHost>
 
-# vim: set ts=3 sw=3 et:
+# vim:set syn=apache: