]> git.openstreetmap.org Git - chef.git/blobdiff - cookbooks/apt/recipes/default.rb
Add squid2 and squid3 repositories and install the correct one
[chef.git] / cookbooks / apt / recipes / default.rb
index 22501640b513b1db05b89f5865a3214c284f38f3..8f57b88c9283508ab7e4bb8032e09b7ad57ed949 100644 (file)
 
 package %w[
   apt
-  gnupg-curl
+  apt-transport-https
   update-notifier-common
 ]
 
+if node[:lsb][:release].to_f < 18.04
+  package "gnupg-curl"
+end
+
 file "/etc/motd.tail" do
   action :delete
 end
@@ -74,6 +78,18 @@ apt_source "openstreetmap" do
   update true
 end
 
+apt_source "squid2" do
+  url "http://ppa.launchpad.net/osmadmins/squid2/ubuntu"
+  key "D57F48750AC4F2CB"
+  update true
+end
+
+apt_source "squid3" do
+  url "http://ppa.launchpad.net/osmadmins/squid3/ubuntu"
+  key "D57F48750AC4F2CB"
+  update true
+end
+
 apt_source "management-component-pack" do
   source_template "hp.list.erb"
   url "https://downloads.linux.hpe.com/SDR/repo/mcp"