From: Tom Hughes Date: Fri, 4 Jan 2019 14:23:44 +0000 (+0000) Subject: Add role for chrysophylax X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/7b86da8b9f7eec9f5bc10f22bf287fb49212dc12 Add role for chrysophylax --- diff --git a/roles/ch.rb b/roles/ch.rb new file mode 100644 index 000000000..daee53a87 --- /dev/null +++ b/roles/ch.rb @@ -0,0 +1,10 @@ +name "ch" +description "Role applied to all servers located in Switzerland" + +override_attributes( + :country => "ch" +) + +run_list( + "role[base]" +) diff --git a/roles/chrysophylax.rb b/roles/chrysophylax.rb new file mode 100644 index 000000000..45482639b --- /dev/null +++ b/roles/chrysophylax.rb @@ -0,0 +1,43 @@ +name "chrysophylax" +description "Master role applied to chrysophylax" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "ens160", + :role => :external, + :family => :inet, + :address => "217.71.244.22", + :prefix => "30", + :gateway => "217.71.244.21" + }, + :external_ipv6 => { + :interface => "ens160", + :role => :external, + :family => :inet6, + :address => "2001:8e0:40:2039::10", + :prefix => "64", + :gateway => "2001:8e0:40:2039::1" + } + } + }, + :squid => { + :cache_mem => "7500 MB", + :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80" + }, + :tilecache => { + :tile_parent => "france.render.openstreetmap.org", + :tile_siblings => [ + "noomoahk.openstreetmap.org", + "nepomuk.openstreetmap.org", + "ladon.openstreetmap.org", + "culebre.openstreetmap.org" + ] + } +) + +run_list( + "role[iway]", + "role[tilecache]" +) diff --git a/roles/iway.rb b/roles/iway.rb new file mode 100644 index 000000000..ae10831e4 --- /dev/null +++ b/roles/iway.rb @@ -0,0 +1,30 @@ +name "iway" +description "Role applied to all servers at iWay" + +default_attributes( + :accounts => { + :users => { + :cramer => { :status => :administrator } + } + }, + :hosted_by => "iWay", + :location => "Zurich, Switzerland", + :networking => { + :nameservers => ["2001:8e0:ffff:ac1::1", "8.8.8.8", "8.8.4.4"], + :roles => { + :external => { + :zone => "osm" + } + } + } +) + +override_attributes( + :ntp => { + :servers => ["0.ch.pool.ntp.org", "1.ch.pool.ntp.org", "europe.pool.ntp.org"] + } +) + +run_list( + "role[ch]" +)