Permalink
Browse files

Dropped apt-proxy because it was obsolete, added support for apt-cach…

…er on clients.
  • Loading branch information...
mattray authored and jtimberman committed Feb 18, 2011
1 parent 655f035 commit bd64f0c30e7f3543420d04b9e6adf5f01a376a54
Showing with 8 additions and 15 deletions.
  1. +8 −15 apt/recipes/{proxy.rb → cacher-client.rb}
@@ -1,8 +1,8 @@
#
# Cookbook Name:: apt
-# Recipe:: proxy
+# Recipe:: cacher-client
#
-# Copyright 2008-2009, Opscode, Inc.
+# Copyright 2011, Opscode, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -16,19 +16,12 @@
# See the License for the specific language governing permissions and
# limitations under the License.
#
-package "apt-proxy" do
- action :install
-end
-service "apt-proxy" do
- supports :restart => true, :status => false
- action [ :enable, :start ]
+server = search(:node, 'recipes:apt\:\:cacher') || []
+if server.length > 0
+ Chef::Log.info("apt-cacher server #{server[0]}.")
+else
+ Chef::Log.info("No apt-cacher server found.")
end
-cookbook_file "/etc/apt-proxy/apt-proxy-v2.conf" do
- source "apt-proxy-v2.conf"
- owner "root"
- group "root"
- mode 0644
- notifies :restart, resources(:service => "apt-proxy")
-end
+#http://hypnotoad:3142/apt-cacher

0 comments on commit bd64f0c

Please sign in to comment.