From: Guillaume RISCHARD Date: Mon, 6 Apr 2020 18:27:31 +0000 (+0100) Subject: Create gackelchen, gandi and lu roles X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/781c63dd2c806e4acc37740303b09bdb5092cb8d?ds=sidebyside Create gackelchen, gandi and lu roles Closes #293 --- diff --git a/roles/gackelchen.rb b/roles/gackelchen.rb new file mode 100644 index 000000000..c2a2104fd --- /dev/null +++ b/roles/gackelchen.rb @@ -0,0 +1,46 @@ +name "gackelchen" +description "Master role applied to gackelchen" + +default_attributes( + :hardware => { + :shm_size => "24g" + }, + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "eth0", + :role => :external, + :family => :inet, + :address => "46.226.108.71", + :prefix => "22", + :gateway => "46.226.111.254", + }, + :external_ipv6 => { + :interface => "eth0", + :role => :external, + :family => :inet6, + :address => "2001:4b98:dc2:41:216:3eff:fe62:924c", + :prefix => "64", + :gateway => "fe80::1" + } + } + }, + :squid => { + :version => 4, + :cache_mem => "20480 MB", + :cache_dir => [ + "rock /store/squid/rock-4096 20000 swap-timeout=200 slot-size=4096 max-size=3996", + "rock /store/squid/rock-8192 25000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092", + "rock /store/squid/rock-16384 35000 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284", + "rock /store/squid/rock-32768 45000 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144" + ] + }, + :tilecache => { + :tile_parent => "bissen.render.openstreetmap.org" + } +) + +run_list( + "role[gandi]", + "role[tilecache]" +) diff --git a/roles/gandi.rb b/roles/gandi.rb new file mode 100644 index 000000000..6868a7c61 --- /dev/null +++ b/roles/gandi.rb @@ -0,0 +1,29 @@ +name "gandi" +description "Role applied to all servers at Gandi" + +default_attributes( + :hosted_by => "Gandi", + :location => "Bissen, Luxembourg", + :networking => { + :nameservers => [ + "217.70.186.194", + "217.70.186.193", + "2001:4b98:dc2:49::193" + ], + :roles => { + :external => { + :zone => "osm" + } + } + } +) + +override_attributes( + :ntp => { + :servers => ["0.lu.pool.ntp.org", "1.lu.pool.ntp.org", "europe.pool.ntp.org"] + } +) + +run_list( + "role[lu]" +) diff --git a/roles/lu.rb b/roles/lu.rb new file mode 100644 index 000000000..dd381e5ec --- /dev/null +++ b/roles/lu.rb @@ -0,0 +1,11 @@ +name "lu" +description "Role applied to all servers located in Luxembourg" + +override_attributes( + :country => "lu", + :timezone => "Europe/Luxembourg" +) + +run_list( + "role[base]" +)