From 1ea594565ac9dc288dded697cddd3ad79368da1a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 10 Sep 2016 12:34:20 +0100 Subject: [PATCH] Add role for odin --- roles/dk.rb | 10 ++++++++++ roles/dotsrc.rb | 29 +++++++++++++++++++++++++++++ roles/odin.rb | 44 ++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 83 insertions(+) create mode 100644 roles/dk.rb create mode 100644 roles/dotsrc.rb create mode 100644 roles/odin.rb diff --git a/roles/dk.rb b/roles/dk.rb new file mode 100644 index 000000000..2fbe1c9b8 --- /dev/null +++ b/roles/dk.rb @@ -0,0 +1,10 @@ +name "dk" +description "Role applied to all servers located in Denmark" + +override_attributes( + :country => "dk" +) + +run_list( + "role[base]" +) diff --git a/roles/dotsrc.rb b/roles/dotsrc.rb new file mode 100644 index 000000000..e236f2756 --- /dev/null +++ b/roles/dotsrc.rb @@ -0,0 +1,29 @@ +name "dotsrc" +description "Role applied to all servers at dotsrc.org" + +default_attributes( + :hosted_by => "dotsrc.org", + :location => "Aalborg, Denmark", + :networking => { + :nameservers => [ + "130.226.1.2", + "130.226.255.53", + "2001:878:0:100::2" + ], + :roles => { + :external => { + :zone => "ds" + } + } + } +) + +override_attributes( + :ntp => { + :servers => ["0.dk.pool.ntp.org", "1.dk.pool.ntp.org", "europe.pool.ntp.org"] + } +) + +run_list( + "role[dk]" +) diff --git a/roles/odin.rb b/roles/odin.rb new file mode 100644 index 000000000..bb011e4d2 --- /dev/null +++ b/roles/odin.rb @@ -0,0 +1,44 @@ +name "odin" +description "Master role applied to odin" + +default_attributes( + :networking => { + :interfaces => { + :external_ipv4 => { + :interface => "eno1", + :role => :external, + :family => :inet, + :address => "130.225.254.123", + :prefix => "23", + :gateway => "130.225.254.97" + }, + :external_ipv6 => { + :interface => "eno1", + :role => :external, + :family => :inet6, + :address => "2001:878:346::123", + :prefix => "64", + :gateway => "2001:878:346::97" + } + } + }, + :squid => { + :cache_mem => "16000 MB", + :cache_dir => "coss /store/squid/coss-01 80000 block-size=8192 max-size=262144 membufs=80" + }, + :tilecache => { + :tile_parent => "aalborg.render.openstreetmap.org", + :tile_siblings => [ + "trogdor.openstreetmap.org", + "katie.openstreetmap.org", + "konqi.openstreetmap.org", + "ridgeback.openstreetmap.org", + "gorynych.openstreetmap.org" + ] + } +) + +run_list( + "role[dotsrc]", + "role[tilecache]" +) -- 2.39.5