]> git.openstreetmap.org Git - chef.git/blob - cookbooks/apt/recipes/default.rb
Update carto stylesheet to v2.24.0
[chef.git] / cookbooks / apt / recipes / default.rb
1 #
2 # Cookbook Name:: apt
3 # Recipe:: default
4 #
5 # Copyright 2010, Tom Hughes
6 #
7 # Licensed under the Apache License, Version 2.0 (the "License");
8 # you may not use this file except in compliance with the License.
9 # You may obtain a copy of the License at
10 #
11 #     http://www.apache.org/licenses/LICENSE-2.0
12 #
13 # Unless required by applicable law or agreed to in writing, software
14 # distributed under the License is distributed on an "AS IS" BASIS,
15 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 # See the License for the specific language governing permissions and
17 # limitations under the License.
18 #
19
20 package "apt"
21 package "update-notifier-common"
22
23 file "/etc/motd.tail" do
24   action :delete
25 end
26
27 execute "apt-update" do
28   action :nothing
29   command "/usr/bin/apt-get update"
30 end
31
32 sources_template = case node[:lsb][:release].to_f
33   when 12.10 then "old-sources.list.erb"
34   else "sources.list.erb"
35 end
36
37 template "/etc/apt/sources.list" do
38   source sources_template
39   owner "root"
40   group "root"
41   mode 0644
42   notifies :run, "execute[apt-update]"
43 end
44
45 apt_source "brightbox" do
46   url "http://apt.brightbox.net/"
47   key "0090DAAD"
48 end
49
50 apt_source "brightbox-ruby-ng" do
51   url "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu"
52   key "C3173AA6"
53 end
54
55 apt_source "brightbox-ruby-ng-experimental" do
56   url "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu-experimental"
57   key "C3173AA6"
58 end
59
60 apt_source "pitti-postgresql" do
61   url "http://ppa.launchpad.net/pitti/postgresql/ubuntu"
62   key "8683D8A2"
63 end
64
65 apt_source "ubuntugis-stable" do
66   url "http://ppa.launchpad.net/ubuntugis/ppa/ubuntu"
67   key "314DF160"
68 end
69
70 apt_source "ubuntugis-unstable" do
71   url "http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu"
72   key "314DF160"
73 end
74
75 apt_source "brianmercer-php" do
76   url "http://ppa.launchpad.net/brianmercer/php/ubuntu"
77   key "8D0DC64F"
78 end
79
80 if node[:lsb][:release].to_f == 12.04
81   apt_source "openstreetmap" do
82     url "http://ppa.launchpad.net/osmadmins/ppa/ubuntu"
83     key "0AC4F2CB"
84   end
85 end
86
87 apt_source "management-component-pack" do
88   template "hp.list.erb"
89   url "http://downloads.linux.hp.com/SDR/downloads/ManagementComponentPack"
90   key "2689B887"
91 end
92
93 apt_source "hwraid" do
94   template "hwraid.list.erb"
95   url "http://hwraid.le-vert.net/ubuntu"
96   key "23B3D3B4"
97 end
98
99 apt_source "mapnik-v210" do
100   url "http://ppa.launchpad.net/mapnik/v2.1.0/ubuntu"
101   key "5D50B6BA"
102 end
103
104 apt_source "nginx" do
105   template "nginx.list.erb"
106   url "http://nginx.org/packages/ubuntu"
107   key "7BD9BF62"
108 end
109
110 apt_source "elasticsearch" do
111   template "elasticsearch.list.erb"
112   url "http://packages.elasticsearch.org/elasticsearch/1.0/debian"
113   key "D88E42B4"
114 end
115
116 apt_source "passenger" do
117   url "https://oss-binaries.phusionpassenger.com/apt/passenger"
118   key "AC40B2F7"
119 end