]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for tuatara
authorTom Hughes <tom@compton.nu>
Mon, 25 Feb 2019 22:25:41 +0000 (22:25 +0000)
committerTom Hughes <tom@compton.nu>
Mon, 25 Feb 2019 22:27:02 +0000 (22:27 +0000)
roles/hostedinnz.rb [new file with mode: 0644]
roles/nz.rb [new file with mode: 0644]
roles/tuatara.rb [new file with mode: 0644]

diff --git a/roles/hostedinnz.rb b/roles/hostedinnz.rb
new file mode 100644 (file)
index 0000000..86438e0
--- /dev/null
@@ -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 (file)
index 0000000..c7adbe8
--- /dev/null
@@ -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 (file)
index 0000000..ee4f3f6
--- /dev/null
@@ -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]"
+)