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