From: Tom Hughes Date: Mon, 2 Jun 2014 23:19:17 +0000 (+0100) Subject: Use precise packages from hwraid for trusty X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/b00a56cbb5ef6ac0f2449e52d2126abb9529d065?ds=sidebyside Use precise packages from hwraid for trusty --- diff --git a/cookbooks/apt/recipes/default.rb b/cookbooks/apt/recipes/default.rb index 84b03a0f0..c004043ef 100644 --- a/cookbooks/apt/recipes/default.rb +++ b/cookbooks/apt/recipes/default.rb @@ -96,6 +96,7 @@ apt_source "management-component-pack" do end apt_source "hwraid" do + template "hwraid.list.erb" url "http://hwraid.le-vert.net/ubuntu" key "23B3D3B4" end diff --git a/cookbooks/apt/templates/default/hwraid.list.erb b/cookbooks/apt/templates/default/hwraid.list.erb new file mode 100644 index 000000000..5887dcb8b --- /dev/null +++ b/cookbooks/apt/templates/default/hwraid.list.erb @@ -0,0 +1,9 @@ +# DO NOT EDIT - This file is being maintained by Chef + +<% if node[:lsb][:release].to_f > 12.04 -%> +deb <%= @url %> precise main +deb-src <%= @url %> precise main +<% else -%> +deb <%= @url %> <%= node.lsb.codename %> main +deb-src <%= @url %> <%= node.lsb.codename %> main +<% end -%>