From: Tom Hughes Date: Mon, 25 Feb 2019 22:25:41 +0000 (+0000) Subject: Add role for tuatara X-Git-Url: https://git.openstreetmap.org/chef.git/commitdiff_plain/bd4556b58140de3140b783be7ad50f5505211425?ds=sidebyside Add role for tuatara --- diff --git a/roles/hostedinnz.rb b/roles/hostedinnz.rb new file mode 100644 index 000000000..86438e01f --- /dev/null +++ b/roles/hostedinnz.rb @@ -0,0 +1,25 @@ +name "hostedinnz" +description "Role applied to all servers at HostedIn.NZ" + +default_attributes( + :hosted_by => "HostedIn.NZ", + :location => "Wellington, New Zealand", + :networking => { + :nameservers => ["8.8.8.8", "8.8.4.4"], + :roles => { + :external => { + :zone => "osm" + } + } + } +) + +override_attributes( + :ntp => { + :servers => ["0.nz.pool.ntp.org", "1.nz.pool.ntp.org", "asia.pool.ntp.org"] + } +) + +run_list( + "role[nz]" +) diff --git a/roles/nz.rb b/roles/nz.rb new file mode 100644 index 000000000..c7adbe837 --- /dev/null +++ b/roles/nz.rb @@ -0,0 +1,10 @@ +name "nz" +description "Role applied to all servers located in New Zealand" + +override_attributes( + :country => "nz" +) + +run_list( + "role[base]" +) diff --git a/roles/tuatara.rb b/roles/tuatara.rb new file mode 100644 index 000000000..ee4f3f654 --- /dev/null +++ b/roles/tuatara.rb @@ -0,0 +1,34 @@ +name "tuatara" +description "Master role applied to tuatara" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "eno1", + :role => :external, + :family => :inet, + :address => "103.106.66.202", + :prefix => "24", + :gateway => "103.106.66.254" + } + } + }, + :squid => { + :cache_mem => "75000 MB", + :cache_dir => "coss /store/squid/coss-01 128000 block-size=8192 max-size=262144 membufs=80" + }, + :tilecache => { + :tile_parent => "wellington.render.openstreetmap.org", + :tile_siblings => [ + "longma.openstreetmap.org", + "storfly-02.openstreetmap.org", + "jakelong.openstreetmap.org" + ] + } +) + +run_list( + "role[hostedinnz]", + "role[tilecache]" +)