]> git.openstreetmap.org Git - chef.git/blob - roles/poldi.rb
Add a cookbook to configure the backup server
[chef.git] / roles / poldi.rb
1 name "poldi"
2 description "Master role applied to poldi"
3
4 default_attributes(
5   :devices => {
6     :ubuntu => {
7       :comment => "RAID array backing the ubuntu volume group",
8       :type => "block",
9       :bus => "scsi",
10       :serial => "20004d927fffff800",
11       :attrs => {
12         "queue/scheduler" => "deadline"
13       }
14     },
15     :nominatim => {
16       :comment => "RAID array backing the nominatim volume group",
17       :type => "block",
18       :bus => "scsi",
19       :serial => "20004d927fffff801",
20       :attrs => {
21         "queue/scheduler" => "deadline"
22       }
23     },
24     :nominatim2 => {
25       :comment => "RAID array backing the nominatim2 volume group",
26       :type => "block",
27       :bus => "scsi",
28       :serial => "20004d927fffff802",
29       :attrs => {
30         "queue/scheduler" => "deadline"
31       }
32     }
33   },
34   :networking => {
35     :interfaces => {
36       :internal_ipv4 => {
37         :interface => "eth0",
38         :role => :internal,
39         :family => :inet,
40         :address => "10.0.0.16"
41       },
42       :external_ipv4 => {
43         :interface => "eth1",
44         :role => :external,
45         :family => :inet,
46         :address => "128.40.168.106"
47       }
48     }
49   },
50   :postgresql => {
51     :settings => {
52       :defaults => {
53         :shared_buffers => "9GB",
54         :work_mem => "160MB",
55         :maintenance_work_mem => "9GB",
56         :random_page_cost => "1.5",
57         :effective_cache_size => "24GB"
58       }
59     }
60   }
61 )
62
63 run_list(
64   "role[ucl-internal]",
65   "role[nominatim]"
66 )