]> git.openstreetmap.org Git - chef.git/blob - roles/culebre.rb
Move OSUOSL hosts to use interface inheritance for network configuration
[chef.git] / roles / culebre.rb
1 name "culebre"
2 description "Master role applied to culebre"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal => {
8         :inet => {
9           :address => "10.0.64.9"
10         },
11         :bond => {
12           :slaves => %w[enp68s0f0 enp68s0f1 enp68s0f2 enp68s0f3]
13         }
14       },
15       :henet => {
16         :inet => {
17           :address => "184.104.226.105"
18         },
19         :inet6 => {
20           :address => "2001:470:1:b3b::9"
21         }
22       },
23       :equinix => {
24         :inet => {
25           :address => "87.252.214.105"
26         },
27         :inet6 => {
28           :address => "2001:4d78:fe03:1c::9"
29         }
30       }
31     }
32   },
33   :postgresql => {
34     :settings => {
35       :defaults => {
36         :effective_cache_size => "16GB"
37       }
38     }
39   },
40   :sysctl => {
41     :postgres => {
42       :comment => "Increase shared memory for postgres",
43       :parameters => {
44         "kernel.shmmax" => 9 * 1024 * 1024 * 1024,
45         "kernel.shmall" => 9 * 1024 * 1024 * 1024 / 4096
46       }
47     }
48   },
49   :tile => {
50     :database => {
51       :cluster => "16/main",
52       :postgis => "3"
53     },
54     :mapnik => "3.1",
55     :styles => {
56       :default => {
57         :tile_directories => [
58           { :name => "/store/tiles/default", :min_zoom => 0, :max_zoom => 19 }
59         ]
60       }
61     }
62   }
63 )
64
65 run_list(
66   "role[equinix-dub-public]",
67   "role[tile]"
68 )