]> git.openstreetmap.org Git - chef.git/blob - roles/pummelzacken.rb
Mention .torrent files too in header (instead of only mirrors)
[chef.git] / roles / pummelzacken.rb
1 name "pummelzacken"
2 description "Master role applied to pummelzacken"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :bond => {
8         :interface => "bond0",
9         :bond => {
10           :slaves => %w[eno1 enp5s0f0]
11         }
12       },
13       :internal_ipv4 => {
14         :interface => "bond0.2801",
15         :role => :internal,
16         :family => :inet,
17         :address => "10.0.0.20"
18       },
19       :external_ipv4 => {
20         :interface => "bond0.2800",
21         :role => :external,
22         :family => :inet,
23         :address => "193.60.236.18"
24       }
25     }
26   },
27   :postgresql => {
28     :versions => ["13"],
29     :settings => {
30       :defaults => {
31         :listen_addresses => "10.0.0.20",
32         :work_mem => "160MB",
33         :maintenance_work_mem => "10GB",
34         :random_page_cost => "1.5",
35         :effective_cache_size => "60GB",
36         :effective_io_concurrency => "256",
37         :fsync => "off"
38       }
39     }
40   },
41   :apache => {
42     :event => {
43       :max_request_workers => 3000,
44       :threads_per_child => 70
45     }
46   },
47   :nominatim => {
48     :state => "off",
49     :dbadmins => %w[lonvia tomh],
50     :dbcluster => "13/main",
51     :postgis => "3",
52     :enable_backup => true,
53     :flatnode_file => "/ssd/nominatim/nodes.store",
54     :tablespaces => {
55       "dosm" => "/ssd/tablespaces/dosm",
56       "iosm" => "/ssd/tablespaces/iosm",
57       "dplace" => "/ssd/tablespaces/dplace",
58       "iplace" => "/ssd/tablespaces/iplace",
59       "daddress" => "/ssd/tablespaces/daddress",
60       "iaddress" => "/ssd/tablespaces/iaddress",
61       "dsearch" => "/ssd/tablespaces/dsearch",
62       "isearch" => "/ssd/tablespaces/isearch",
63       "daux" => "/data/tablespaces/daux",
64       "iaux" => "/data/tablespaces/iaux"
65     }
66   }
67 )
68
69 run_list(
70   "role[ucl]",
71   "role[nominatim]"
72 )