]> git.openstreetmap.org Git - chef.git/commitdiff
Use precise packages from hwraid for trusty
authorTom Hughes <tom@compton.nu>
Mon, 2 Jun 2014 23:19:17 +0000 (00:19 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 2 Jun 2014 23:19:17 +0000 (00:19 +0100)
cookbooks/apt/recipes/default.rb
cookbooks/apt/templates/default/hwraid.list.erb [new file with mode: 0644]

index 84b03a0f02f470b31713084df3062a4c14f79ec2..c004043ef9c7068dfe498f6a6c87d7bbb6555c0e 100644 (file)
@@ -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 (file)
index 0000000..5887dcb
--- /dev/null
@@ -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 -%>