X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/0eab3bc4dbd340dd5e8bfb2491dd86c771c70b92..a725f6d3959f30f6600026178192e5f237a1a805:/cookbooks/squid/recipes/default.rb?ds=inline diff --git a/cookbooks/squid/recipes/default.rb b/cookbooks/squid/recipes/default.rb index 3260e14d5..6b2e25eff 100644 --- a/cookbooks/squid/recipes/default.rb +++ b/cookbooks/squid/recipes/default.rb @@ -18,26 +18,31 @@ # 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 @@ -90,7 +95,7 @@ systemd_service "squid" do 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