]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for waima
authorTom Hughes <tom@compton.nu>
Tue, 5 Mar 2019 18:59:09 +0000 (18:59 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 5 Mar 2019 18:59:09 +0000 (18:59 +0000)
roles/catalyst.rb [new file with mode: 0644]
roles/waima.rb [new file with mode: 0644]

diff --git a/roles/catalyst.rb b/roles/catalyst.rb
new file mode 100644 (file)
index 0000000..cc6a7a2
--- /dev/null
@@ -0,0 +1,25 @@
+name "catalyst"
+description "Role applied to all servers at Catalyst"
+
+default_attributes(
+  :hosted_by => "Catalyst",
+  :location => "New Zealand",
+  :networking => {
+    :nameservers => ["202.78.244.85", "202.78.244.86", "202.78.244.87"],
+    :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/waima.rb b/roles/waima.rb
new file mode 100644 (file)
index 0000000..954dedd
--- /dev/null
@@ -0,0 +1,36 @@
+name "waima"
+description "Master role applied to waima"
+
+default_attributes(
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "ens3",
+        :role => :external,
+        :family => :inet,
+        :address => "192.168.1.4",
+        :prefix => "24",
+        :gateway => "192.168.1.1",
+        :public_address => "103.197.61.160"
+      }
+    }
+  },
+  :squid => {
+    :cache_mem => "7500 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 => [
+      "tuatara.openstreetmap.org",
+      "longma.openstreetmap.org",
+      "storfly-02.openstreetmap.org",
+      "jakelong.openstreetmap.org"
+    ]
+  }
+)
+
+run_list(
+  "role[catalyst]",
+  "role[tilecache]"
+)