X-Git-Url: https://git.openstreetmap.org./chef.git/blobdiff_plain/b65d8cebd4b510a38156965b6a4fce03cdcf36d9..a884ecbc667c29750d26ca2ad8f325f857ead5d3:/cookbooks/apt/recipes/default.rb?ds=sidebyside diff --git a/cookbooks/apt/recipes/default.rb b/cookbooks/apt/recipes/default.rb index 4874d15fb..e3787470a 100644 --- a/cookbooks/apt/recipes/default.rb +++ b/cookbooks/apt/recipes/default.rb @@ -37,9 +37,15 @@ template "/etc/apt/sources.list" do notifies :run, "execute[apt-update]", :immediately end -apt_source "brightbox-ruby-ng" do - url "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu" - key "C3173AA6" +if node[:lsb][:release].to_f >= 16.04 + apt_source "brightbox-ruby-ng" do + action :delete + end +else + apt_source "brightbox-ruby-ng" do + url "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu" + key "C3173AA6" + end end apt_source "ubuntugis-stable" do