]> git.openstreetmap.org Git - chef.git/blob - roles/owl.rb
Move GPX import to spike-04
[chef.git] / roles / owl.rb
1 name "owl"
2 description "Role applied to all OWL servers"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :yellowbkpk => { :status => :user },
8       :ppawel => { :status => :user },
9       :owl => {
10         :status => :role,
11         :members => [:yellowbkpk, :ppawel]
12       }
13     },
14     :groups => {
15       :adm => {
16         :members => [:yellowbkpk, :ppawel]
17       }
18     }
19   },
20   :apache => {
21     :mpm => "event"
22   },
23   :apt => {
24     :sources => ["brightbox-ruby-ng", "ubuntugis-stable", "ubuntugis-unstable"]
25   },
26   :postgresql => {
27     :versions => ["9.1"],
28     :settings => {
29       :defaults => {
30         :fsync => "off",
31         :checkpoint_segments => "30",
32         :max_wal_size => "1440MB",
33         :checkpoint_completion_target => "0.9",
34         :random_page_cost => "2.0",
35         :log_min_duration_statement => "3000"
36       },
37       "9.1" => {
38         :port => "5433"
39       }
40     }
41   },
42   :sysctl => {
43     :postgres => {
44       :comment => "Increase shared memory for postgres",
45       :parameters => {
46         "kernel.shmmax" => 16 * 1024 * 1024 * 1024,
47         "kernel.shmall" => 16 * 1024 * 1024 * 1024 / 4096
48       }
49     }
50   }
51 )
52
53 run_list(
54   "recipe[owl]"
55 )