]> git.openstreetmap.org Git - chef.git/commitdiff
Use the xenial repository for HP tools on 16.04 and later
authorTom Hughes <tom@compton.nu>
Mon, 25 Jun 2018 12:49:10 +0000 (13:49 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 25 Jun 2018 12:49:10 +0000 (13:49 +0100)
cookbooks/apt/templates/default/hp.list.erb

index 42f7a037f85fedc44a42ad018fd1d4336890fc80..f76d66efbf564cc56856c87e498170e97fde6f12 100644 (file)
@@ -1,3 +1,7 @@
 # DO NOT EDIT - This file is being maintained by Chef
 
 # DO NOT EDIT - This file is being maintained by Chef
 
+<% if node[:lsb][:release].to_f >= 16.04 -%>
+deb <%= @url %> xenial/current non-free
+<% else -%>
 deb <%= @url %> trusty/current non-free
 deb <%= @url %> trusty/current non-free
+<% end -%>