+if node[:squid][:version] == "3"
+ apt_package "squid" do
+ action :unlock
+ end
+
+ apt_package "squid-common" do
+ action :unlock
+ end
+
+ apt_package "squid" do
+ action :purge
+ only_if "dpkg-query -W squid | fgrep -q 2."
+ end
+
+ apt_package "squid-common" do
+ action :purge
+ only_if "dpkg-query -W squid-common | fgrep -q 2."
+ end
+
+ file "/store/squid/coss-01" do
+ action :delete
+ backup false
+ end
+
+ package "squidclient" do
+ action :upgrade
+ end
+end
+