]> git.openstreetmap.org Git - chef.git/blob - roles/katla.rb
Configure external address for fafnir
[chef.git] / roles / katla.rb
1 name "katla"
2 description "Master role applied to katla"
3
4 default_attributes(
5   :db => {
6     :cluster => "9.1/main"
7   },
8   :devices => {
9     :store_slow => {
10       :comment => "RAID array mounted on /store/arrays/slow",
11       :type => "block",
12       :bus => "scsi",
13       :serial => "3600605b005a0609019290f178be8de77",
14       :attrs => {
15         "queue/scheduler" => "deadline",
16         "queue/nr_requests" => "975",
17         "queue/rq_affinity" => "2"
18       }
19     },
20     :store_fast => {
21       :comment => "RAID array mounted on /store/arrays/fast",
22       :type => "block",
23       :bus => "scsi",
24       :serial => "3600605b005a0726019d062ae23b426fd",
25       :attrs => {
26         "queue/scheduler" => "deadline",
27         "queue/nr_requests" => "975",
28         "queue/rq_affinity" => "2"
29       }
30     },
31     :store_ssd_1 => {
32       :comment => "First disk of RAID array mounted on /store/arrays/ssd",
33       :type => "block",
34       :bus => "ata",
35       :serial => "INTEL_SSDSC2BA400G3_BTTV3141041E400HGN",
36       :attrs => {
37         "queue/scheduler" => "noop"
38       }
39     },
40     :store_ssd_2 => {
41       :comment => "Second disk of RAID array mounted on /store/arrays/ssd",
42       :type => "block",
43       :bus => "ata",
44       :serial => "INTEL_SSDSC2BA400G3_BTTV3141044Q400HGN",
45       :attrs => {
46         "queue/scheduler" => "noop"
47       }
48     }
49   },
50   :networking => {
51     :interfaces => {
52       :internal_ipv4 => {
53         :interface => "eth0",
54         :role => :internal,
55         :family => :inet,
56         :address => "146.179.159.173",
57         :hwaddress => "00:25:90:94:91:00"
58       }
59     }
60   },
61   :postgresql => {
62     :settings => {
63       :defaults => {
64         :shared_buffers => "64GB",
65         :work_mem => "64MB",
66         :maintenance_work_mem => "1GB",
67         :effective_cache_size => "180GB"
68       }
69     }
70   },
71   :sysctl => {
72     :postgres => {
73       :comment => "Increase shared memory for postgres",
74       :parameters => {
75         "kernel.shmmax" => 66 * 1024 * 1024 * 1024,
76         "kernel.shmall" => 66 * 1024 * 1024 * 1024 / 4096
77       }
78     }
79   }
80 )
81
82 run_list(
83   "role[ic]",
84   "role[db-master]",
85   "role[db-backup]"
86 )