OSDN Git Service

update apt_utils::mirror for debian jessie.
[metasearch/grid-chef-repo.git] / cookbooks / apt_utils / recipes / mirror.rb
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"