]> git.openstreetmap.org Git - chef.git/blob - roles/rhaegal.rb
nominatim: location of config file for nominatim-ui has changed
[chef.git] / roles / rhaegal.rb
1 name "rhaegal"
2 description "Master role applied to rhaegal"
3
4 default_attributes(
5   :accounts => {
6     :users => {
7       :mmiler => { :status => :administrator }
8     }
9   },
10   :location => "Zagreb, Croatia",
11   :munin => {
12     :plugins => {
13       :sensors_temp => {
14         :temp1 => { :warning => "85.0" },
15         :temp2 => { :warning => "85.0" },
16         :temp3 => { :warning => "85.0" },
17         :temp4 => { :warning => "85.0" },
18         :temp5 => { :warning => "85.0" },
19         :temp6 => { :warning => "85.0" },
20         :temp8 => { :warning => "85.0" },
21         :temp9 => { :warning => "85.0" },
22         :temp10 => { :warning => "85.0" },
23         :temp11 => { :warning => "85.0" },
24         :temp12 => { :warning => "85.0" },
25         :temp13 => { :warning => "85.0" }
26       }
27     }
28   },
29   :networking => {
30     :interfaces => {
31       :external_ipv4 => {
32         :interface => "eno1",
33         :role => :external,
34         :family => :inet,
35         :address => "10.5.0.77",
36         :prefix => "16",
37         :gateway => "10.5.0.1",
38         :public_address => "161.53.248.77"
39       }
40     }
41   },
42   :postgresql => {
43     :settings => {
44       :defaults => {
45         :shared_buffers => "8GB",
46         :maintenance_work_mem => "7144MB",
47         :effective_cache_size => "16GB"
48       }
49     }
50   },
51   :sysctl => {
52     :postgres => {
53       :comment => "Increase shared memory for postgres",
54       :parameters => {
55         "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
56         "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
57       }
58     }
59   },
60   :tile => {
61     :database => {
62       :cluster => "12/main",
63       :postgis => "3"
64     },
65     :styles => {
66       :default => {
67         :tile_directories => [
68           { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 }
69         ]
70       }
71     }
72   }
73 )
74
75 run_list(
76   "role[carnet]",
77   "role[tile]"
78 )