]> git.openstreetmap.org Git - chef.git/blob - roles/vhagar.rb
cc431679af373330f7a3229225fe2f3482a86ca5
[chef.git] / roles / vhagar.rb
1 name "vhagar"
2 description "Master role applied to vhagar"
3
4 default_attributes(
5   :networking => {
6     :interfaces => {
7       :internal_ipv4 => {
8         :interface => "bond0",
9         :role => :internal,
10         :family => :inet,
11         :address => "10.0.48.5",
12         :bond => {
13           :mode => "802.3ad",
14           :lacprate => "fast",
15           :xmithashpolicy => "layer3+4",
16           :slaves => %w[eno1 eno2 eno3 eno4 eno5 eno6]
17         }
18       },
19       :external_ipv4 => {
20         :interface => "bond0.2",
21         :role => :external,
22         :family => :inet,
23         :address => "130.117.76.5"
24       },
25       :external_ipv6 => {
26         :interface => "bond0.2",
27         :role => :external,
28         :family => :inet6,
29         :address => "2001:978:2:2C::172:5"
30       }
31     }
32   },
33   :nominatim => {
34     :state => "standalone",
35     :flatnode_file => "/srv/nominatim.openstreetmap.org/planet-project/nodes.store",
36     :fpm_pools => {
37       "nominatim.openstreetmap.org" => {
38         :max_children => 200
39       }
40     }
41   }
42 )
43
44 run_list(
45   "role[equinix-ams]",
46   "role[nominatim]"
47 )