command "/usr/bin/apt-get update"
end
+sources_template = case node[:lsb][:release].to_f
+ when 12.10 then "old-sources.list.erb"
+ else "sources.list.erb"
+end
+
template "/etc/apt/sources.list" do
- source "sources.list.erb"
+ source sources_template
owner "root"
group "root"
mode 0644
key "8D0DC64F"
end
-if node[:lsb][:release].to_f < 14.04
+if node[:lsb][:release].to_f == 12.04
apt_source "openstreetmap" do
url "http://ppa.launchpad.net/osmadmins/ppa/ubuntu"
key "0AC4F2CB"
end
end
-apt_source "proliant-support-pack" do
- template "hp.list.erb"
- url "http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack"
- key "2689B887"
-end
-
apt_source "management-component-pack" do
template "hp.list.erb"
url "http://downloads.linux.hp.com/SDR/downloads/ManagementComponentPack"
url "http://packages.elasticsearch.org/elasticsearch/1.0/debian"
key "D88E42B4"
end
+
+apt_source "passenger" do
+ url "https://oss-binaries.phusionpassenger.com/apt/passenger"
+ key "AC40B2F7"
+end