]> git.openstreetmap.org Git - chef.git/blob - roles/dulcy.rb
nominatim: custom log format
[chef.git] / roles / dulcy.rb
1 name "dulcy"
2 description "Master role applied to dulcy"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal => {
8         :inet => {
9           :address => "10.0.48.9"
10         },
11         :bond => {
12           :slaves => %w[enp1s0f0 enp1s0f1]
13         }
14       },
15       :henet => {
16         :inet => {
17           :address => "184.104.179.137"
18         },
19         :inet6 => {
20           :address => "2001:470:1:fa1::9"
21         }
22       },
23       :equinix => {
24         :inet => {
25           :address => "82.199.86.105"
26         },
27         :inet6 => {
28           :address => "2001:4d78:500:5e3::9"
29         }
30       }
31     }
32   },
33   :sysfs => {
34     :cpu_power_energy_perf_bias => {
35       :parameters => {
36         "devices/system/cpu/cpu0/power/energy_perf_bias" => "0",
37         "devices/system/cpu/cpu1/power/energy_perf_bias" => "0",
38         "devices/system/cpu/cpu2/power/energy_perf_bias" => "0",
39         "devices/system/cpu/cpu3/power/energy_perf_bias" => "0",
40         "devices/system/cpu/cpu4/power/energy_perf_bias" => "0",
41         "devices/system/cpu/cpu5/power/energy_perf_bias" => "0",
42         "devices/system/cpu/cpu6/power/energy_perf_bias" => "0",
43         "devices/system/cpu/cpu7/power/energy_perf_bias" => "0",
44         "devices/system/cpu/cpu8/power/energy_perf_bias" => "0",
45         "devices/system/cpu/cpu9/power/energy_perf_bias" => "0",
46         "devices/system/cpu/cpu10/power/energy_perf_bias" => "0",
47         "devices/system/cpu/cpu11/power/energy_perf_bias" => "0",
48         "devices/system/cpu/cpu12/power/energy_perf_bias" => "0",
49         "devices/system/cpu/cpu13/power/energy_perf_bias" => "0",
50         "devices/system/cpu/cpu14/power/energy_perf_bias" => "0",
51         "devices/system/cpu/cpu15/power/energy_perf_bias" => "0",
52         "devices/system/cpu/cpu16/power/energy_perf_bias" => "0",
53         "devices/system/cpu/cpu17/power/energy_perf_bias" => "0",
54         "devices/system/cpu/cpu18/power/energy_perf_bias" => "0",
55         "devices/system/cpu/cpu19/power/energy_perf_bias" => "0",
56         "devices/system/cpu/cpu20/power/energy_perf_bias" => "0",
57         "devices/system/cpu/cpu21/power/energy_perf_bias" => "0",
58         "devices/system/cpu/cpu22/power/energy_perf_bias" => "0",
59         "devices/system/cpu/cpu23/power/energy_perf_bias" => "0",
60         "devices/system/cpu/cpu24/power/energy_perf_bias" => "0",
61         "devices/system/cpu/cpu25/power/energy_perf_bias" => "0",
62         "devices/system/cpu/cpu26/power/energy_perf_bias" => "0",
63         "devices/system/cpu/cpu27/power/energy_perf_bias" => "0",
64         "devices/system/cpu/cpu28/power/energy_perf_bias" => "0",
65         "devices/system/cpu/cpu29/power/energy_perf_bias" => "0",
66         "devices/system/cpu/cpu30/power/energy_perf_bias" => "0",
67         "devices/system/cpu/cpu31/power/energy_perf_bias" => "0"
68       }
69     }
70   },
71   :postgresql => {
72     :versions => ["17"],
73     :settings => {
74       :defaults => {
75         :work_mem => "240MB",
76         :effective_io_concurrency => "500"
77       }
78     }
79   },
80   :nominatim => {
81     :dbcluster => "17/main",
82     :flatnode_file => "/srv/nominatim.openstreetmap.org/planet-project/nodes.store",
83     :enable_qa_tiles => false,
84     :api_workers => 14,
85     :api_pool_size => 10
86   }
87 )
88
89 run_list(
90   "role[equinix-ams-public]",
91   "role[nominatim]"
92 )