#
if node[:squid][:version] == "3"
- package "squid" do
- action :remove
- only_if "dpkg-query -W squid | fgrep -q 2."
+ apt_package "squid" do
+ action :unlock
end
- package "squid-common" do
- action :remove
- only_if "dpkg-query -W squid-common | fgrep -q 2."
+ apt_package "squid-common" do
+ action :unlock
end
apt_package "squid" do
- action :unlock
+ action :purge
+ only_if "dpkg-query -W squid | fgrep -q 2."
end
apt_package "squid-common" do
- action :unlock
+ 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
type "forking"
limit_nofile 65536
exec_start_pre "/usr/sbin/squid -N -z"
- exec_start "/usr/sbin/squid"
+ exec_start "/usr/sbin/squid -Y"
exec_reload "/usr/sbin/squid -k reconfigure"
exec_stop "/usr/sbin/squid -k shutdown"
private_tmp true