]> git.openstreetmap.org Git - chef.git/blob - cookbooks/apt/recipes/default.rb
01b6b8328c1d424afa21bbc90103b70b91c09583
[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 template "/etc/apt/sources.list" do
33   source "sources.list.erb"
34   owner "root"
35   group "root"
36   mode 0644
37   notifies :run, "execute[apt-update]", :immediately
38 end
39
40 apt_source "brightbox-ruby-ng" do
41   url "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu"
42   key "C3173AA6"
43 end
44
45 apt_source "ubuntugis-stable" do
46   url "http://ppa.launchpad.net/ubuntugis/ppa/ubuntu"
47   key "314DF160"
48 end
49
50 apt_source "ubuntugis-unstable" do
51   url "http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu"
52   key "314DF160"
53 end
54
55 apt_source "openstreetmap" do
56   template "openstreetmap.list.erb"
57   url "http://ppa.launchpad.net/osmadmins/ppa/ubuntu"
58   key "0AC4F2CB"
59 end
60
61 apt_source "management-component-pack" do
62   template "hp.list.erb"
63   url "http://downloads.linux.hp.com/SDR/downloads/ManagementComponentPack"
64   key "2689B887"
65 end
66
67 apt_source "hwraid" do
68   template "hwraid.list.erb"
69   url "http://hwraid.le-vert.net/ubuntu"
70   key "23B3D3B4"
71 end
72
73 apt_source "mapnik-v210" do
74   url "http://ppa.launchpad.net/mapnik/v2.1.0/ubuntu"
75   key "5D50B6BA"
76 end
77
78 apt_source "nginx" do
79   template "nginx.list.erb"
80   url "http://nginx.org/packages/ubuntu"
81   key "7BD9BF62"
82 end
83
84 apt_source "elasticsearch" do
85   template "elasticsearch.list.erb"
86   url "http://packages.elasticsearch.org/elasticsearch/1.0/debian"
87   key "D88E42B4"
88 end
89
90 apt_source "passenger" do
91   url "https://oss-binaries.phusionpassenger.com/apt/passenger"
92   key "AC40B2F7"
93 end
94
95 apt_source "passenger4" do
96   url "https://oss-binaries.phusionpassenger.com/apt/passenger/4"
97   key "AC40B2F7"
98 end