]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for kilgharrah
authorTom Hughes <tom@compton.nu>
Thu, 16 Jul 2020 17:23:43 +0000 (18:23 +0100)
committerTom Hughes <tom@compton.nu>
Thu, 16 Jul 2020 17:23:43 +0000 (18:23 +0100)
roles/kilgharrah.rb [new file with mode: 0644]

diff --git a/roles/kilgharrah.rb b/roles/kilgharrah.rb
new file mode 100644 (file)
index 0000000..530060f
--- /dev/null
@@ -0,0 +1,47 @@
+name "kilgharrah"
+description "Master role applied to kilgharrah"
+
+default_attributes(
+  :hardware => {
+    :shm_size => "12g"
+  },
+  :location => "Falkenstein, Germany",
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "enp4s0",
+        :role => :external,
+        :family => :inet,
+        :address => "176.9.47.143",
+        :prefix => "32",
+        :gateway => "176.9.47.129"
+      },
+      :external_ipv6 => {
+        :interface => "enp4s0",
+        :role => :external,
+        :family => :inet6,
+        :address => "2a01:4f8:150:638d::2",
+        :prefix => "64",
+        :gateway => "fe80::1"
+      }
+    }
+  },
+  :squid => {
+    :version => 4,
+    :cache_mem => "8192 MB",
+    :cache_dir => [
+      "rock /store/squid/rock-4096 20000 swap-timeout=200 slot-size=4096 max-size=3996",
+      "rock /store/squid/rock-8192 25000 swap-timeout=200 slot-size=8192 min-size=3997 max-size=8092",
+      "rock /store/squid/rock-16384 35000 swap-timeout=200 slot-size=16384 min-size=8093 max-size=16284",
+      "rock /store/squid/rock-32768 45000 swap-timeout=200 slot-size=32768 min-size=16285 max-size=262144"
+    ]
+  },
+  :tilecache => {
+    :tile_parent => "germany.render.openstreetmap.org"
+  }
+)
+
+run_list(
+  "role[hetzner]",
+  "role[tilecache]"
+)