OSDN Git Service

update apt_utils::mirror for debian jessie.
authorwhitestar <whitestar@gaea.test>
Tue, 29 Sep 2015 06:57:20 +0000 (15:57 +0900)
committerwhitestar <whitestar@gaea.test>
Tue, 29 Sep 2015 06:57:20 +0000 (15:57 +0900)
.gitignore
cookbooks/apt_utils/recipes/mirror.rb
cookbooks/apt_utils/templates/default/etc/apache2/conf.d/apt-mirror

index fba382d..058a3d1 100644 (file)
@@ -12,6 +12,9 @@ nodes/*tmp.json
 roles/*tmp.rb
 cookbooks/dsh/files/default/rpms/*.rpm
 
+# Dropbox
+.dropbox.attr
+
 # Berkshelf
 .vagrant
 Berksfile.lock
index a6232b9..10794e7 100644 (file)
@@ -54,7 +54,12 @@ httpd_conf_path = nil
 case node[:platform_family]
 when 'debian'
   mirror_list_path = '/etc/apt/mirror.list'
-  httpd_conf_path = "/etc/#{httpd_service}/conf.d/apt-mirror"
+  case node[:platform_version]
+  when 'jessie'
+    httpd_conf_path = "/etc/#{httpd_service}/conf-available/apt-mirror"
+  else
+    httpd_conf_path = "/etc/#{httpd_service}/conf.d/apt-mirror"
+  end
 when 'rhel'
   mirror_list_path = '/etc/apt-mirror.list'
   httpd_conf_path = "/etc/#{httpd_service}/conf.d/apt-mirror.conf"
index 04158b7..74815e2 100644 (file)
@@ -41,8 +41,13 @@ Alias <%= ctx_path %> <%= mirror_path %>
   Options Indexes SymLinksIfOwnerMatch FollowSymLinks
   IndexOptions NameWidth=* +SuppressDescription
   AllowOverride FileInfo Indexes
-  Order Deny,Allow
-  Allow from all
+  <IfVersion < 2.3>
+    Order Deny,Allow
+    Allow from all
+  </IfVersion>
+  <IfVersion >= 2.3>
+    Require all granted
+  </IfVersion>
   ErrorDocument 404 default
 </Directory>