]> git.openstreetmap.org Git - chef.git/blob - roles/snap-01.rb
Drop OCSP checks as letsencrypt is dropping OCSP
[chef.git] / roles / snap-01.rb
1 name "snap-01"
2 description "Master role applied to snap-01"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal => {
8         :inet => {
9           :address => "10.0.48.49"
10         },
11         :bond => {
12           :slaves => %w[eno1 eno2 eno3 eno4]
13         }
14       }
15     }
16   },
17   :postgresql => {
18     :settings => {
19       :defaults => {
20         :shared_buffers => "128GB",
21         :work_mem => "128MB",
22         :maintenance_work_mem => "2GB",
23         :effective_cache_size => "360GB"
24       }
25     }
26   },
27   :sysctl => {
28     :postgres => {
29       :comment => "Increase shared memory for postgres",
30       :parameters => {
31         "kernel.shmmax" => 132 * 1024 * 1024 * 1024,
32         "kernel.shmall" => 132 * 1024 * 1024 * 1024 / 4096
33       }
34     }
35   }
36 )
37
38 run_list(
39   "role[equinix-ams]",
40   "role[db-master]",
41   "role[db-backup]"
42 )