From b00a56cbb5ef6ac0f2449e52d2126abb9529d065 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Tue, 3 Jun 2014 00:19:17 +0100 Subject: [PATCH] Use precise packages from hwraid for trusty --- cookbooks/apt/recipes/default.rb | 1 + cookbooks/apt/templates/default/hwraid.list.erb | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 cookbooks/apt/templates/default/hwraid.list.erb 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 -%> -- 2.43.2