]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for odin
authorTom Hughes <tom@compton.nu>
Sat, 10 Sep 2016 11:34:20 +0000 (12:34 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 10 Sep 2016 11:34:20 +0000 (12:34 +0100)
roles/dk.rb [new file with mode: 0644]
roles/dotsrc.rb [new file with mode: 0644]
roles/odin.rb [new file with mode: 0644]

diff --git a/roles/dk.rb b/roles/dk.rb
new file mode 100644 (file)
index 0000000..2fbe1c9
--- /dev/null
@@ -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 (file)
index 0000000..e236f27
--- /dev/null
@@ -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 (file)
index 0000000..bb011e4
--- /dev/null
@@ -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]"
+)