]> git.openstreetmap.org Git - chef.git/blob - cookbooks/apt/recipes/default.rb
Escape % in crontab
[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]"
38 end
39
40 apt_source "opscode" do
41   template "opscode.list.erb"
42   url "http://apt.opscode.com/"
43   key "83EF826A"
44 end
45
46 apt_source "brightbox" do
47   url "http://apt.brightbox.net/"
48   key "0090DAAD"
49 end
50
51 apt_source "brightbox-ruby-ng" do
52   url "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu"
53   key "C3173AA6"
54 end
55
56 apt_source "brightbox-ruby-ng-experimental" do
57   url "http://ppa.launchpad.net/brightbox/ruby-ng/ubuntu-experimental"
58   key "C3173AA6"
59 end
60
61 apt_source "pitti-postgresql" do
62   url "http://ppa.launchpad.net/pitti/postgresql/ubuntu"
63   key "8683D8A2"
64 end
65
66 apt_source "ubuntugis-stable" do
67   url "http://ppa.launchpad.net/ubuntugis/ppa/ubuntu"
68   key "314DF160"
69 end
70
71 apt_source "ubuntugis-unstable" do
72   url "http://ppa.launchpad.net/ubuntugis/ubuntugis-unstable/ubuntu"
73   key "314DF160"
74 end
75
76 apt_source "brianmercer-php" do
77   url "http://ppa.launchpad.net/brianmercer/php/ubuntu"
78   key "8D0DC64F"
79 end
80
81 apt_source "aw-drupal" do
82   url "http://ppa.launchpad.net/aw/drupal/ubuntu"
83   key "7D5AE8F6"
84 end
85
86 apt_source "openstreetmap" do
87   url "http://ppa.launchpad.net/osmadmins/ppa/ubuntu"
88   key "0AC4F2CB"
89 end
90
91 apt_source "proliant-support-pack" do
92   template "hp.list.erb"
93   url "http://downloads.linux.hp.com/SDR/downloads/ProLiantSupportPack"
94   key "2689B887"
95 end
96
97 apt_source "management-component-pack" do
98   template "hp.list.erb"
99   url "http://downloads.linux.hp.com/SDR/downloads/ManagementComponentPack"
100   key "2689B887"
101 end
102
103 apt_source "hwraid" do
104   url "http://hwraid.le-vert.net/ubuntu"
105   key "23B3D3B4"
106 end
107
108 apt_source "mapnik-v210" do
109   url "http://ppa.launchpad.net/mapnik/v2.1.0/ubuntu"
110   key "5D50B6BA"
111 end
112
113 apt_source "nginx" do
114   template "nginx.list.erb"
115   url "http://nginx.org/packages/ubuntu"
116   key "7BD9BF62"
117 end