]> git.openstreetmap.org Git - chef.git/blob - roles/tile.rb
Revert "Teach tilecache cookbook to return caches sorted (deterministic)"
[chef.git] / roles / tile.rb
1 name "tile"
2 description "Role applied to all tile servers"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :tile => {
8         :status => :role,
9         :members => [ :jburgess, :tomh ]
10       },
11     },
12   },
13   :apt => {
14     :sources => [ "ubuntugis-stable" ]
15   },
16   :postgresql => {
17     :versions => [ "9.1" ],
18     :settings => {
19       :defaults => {
20         :temp_buffers => "32MB",
21         :work_mem => "128MB",
22         :wal_buffers => "1024kB",
23         :wal_writer_delay => "500ms",
24         :commit_delay => "10000",
25         :checkpoint_segments => "60"
26       }
27     }
28   },
29   :sysctl => {
30     :sockets => {
31       :comment => "Increase size of connection queue",
32       :parameters => {
33         "net.core.somaxconn" => 10000
34       }
35     }
36   },
37   :tile => {
38     :database => {
39       :cluster => "9.1/main"
40     },
41     :data => {
42       :world_boundaries => {
43         :url => "http://planet.openstreetmap.org/historical-shapefiles/world_boundaries-spherical.tgz"
44       },
45       :shoreline => {
46         :url => "http://planet.openstreetmap.org/historical-shapefiles/shoreline_300.tar.bz2",
47         :directory => "shoreline_300"
48       },
49       :admin_boundaries => {
50         :url => "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/110m/cultural/ne_110m_admin_0_boundary_lines_land.zip",
51         :directory => "ne_110m_admin_0_boundary_lines_land"
52       },
53       :populated_places => {
54         :url => "http://www.naturalearthdata.com/http//www.naturalearthdata.com/download/10m/cultural/ne_10m_populated_places.zip",
55         :directory => "ne_10m_populated_places",
56         :original => "ne_10m_populated_places.shp",
57         :processed => "ne_10m_populated_places_fixed.shp"
58       },
59       :processed => {
60         :url => "http://planet.openstreetmap.org/historical-shapefiles/processed_p.tar.bz2",
61         :directory => "processed_p"
62       }
63     },
64     :styles => {
65       :default => {
66         :repository => "git://github.com/gravitystorm/openstreetmap-carto.git",
67         :revision => "v2.2.0"
68       }
69     }
70   }
71 )
72
73 run_list(
74   "recipe[tile]"
75 )