]> git.openstreetmap.org Git - chef.git/blob - cookbooks/planet/recipes/default.rb
cb2ff26f30b61e379b59e23efcf2b00ef2b06463
[chef.git] / cookbooks / planet / recipes / default.rb
1 #
2 # Cookbook Name:: planet
3 # Recipe:: default
4 #
5 # Copyright 2011, OpenStreetMap Foundation
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 include_recipe "apache::ssl"
21
22 package "perl"
23 package "php5-cli"
24 package "osmosis"
25
26 remote_directory "/usr/local/bin" do
27   source "bin"
28   owner "root"
29   group "root"
30   mode 0755
31   files_owner "root"
32   files_group "root"
33   files_mode 0755
34 end
35
36 template "/etc/cron.d/planet" do
37   source "cron.erb"
38   owner "root"
39   group "root"
40   mode 0644
41 end
42
43 apache_module "rewrite" do
44   conf "rewrite.conf.erb"
45 end
46
47 apache_module "proxy_http"
48
49 apache_site "planet.openstreetmap.org" do
50   template "apache.erb"
51 end