]> git.openstreetmap.org Git - chef.git/blob - roles/owl.rb
Give bretth chef access and admin access on ironbelly
[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         :checkpoint_completion_target => "0.9",
33         :random_page_cost => "2.0",
34         :log_min_duration_statement => "3000"
35       },
36       "9.1" => {
37         :port => "5433"
38       }
39     }
40   },
41   :sysctl => {
42     :postgres => {
43       :comment => "Increase shared memory for postgres",
44       :parameters => { 
45         "kernel.shmmax" => 16 * 1024 * 1024 * 1024,
46         "kernel.shmall" => 16 * 1024 * 1024 * 1024 / 4096
47       }
48     }
49   }
50 )
51
52 run_list(
53   "recipe[owl]"
54 )