]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for lambton
authorTom Hughes <tom@compton.nu>
Sun, 6 Sep 2020 14:24:57 +0000 (15:24 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 6 Sep 2020 14:24:57 +0000 (15:24 +0100)
roles/lambton.rb [new file with mode: 0644]

diff --git a/roles/lambton.rb b/roles/lambton.rb
new file mode 100644 (file)
index 0000000..e088dd3
--- /dev/null
@@ -0,0 +1,47 @@
+name "lambton"
+description "Master role applied to lambton"
+
+default_attributes(
+  :hardware => {
+    :shm_size => "36g"
+  },
+  :location => "Falkenstein, Germany",
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "enp0s31f6",
+        :role => :external,
+        :family => :inet,
+        :address => "88.99.244.109",
+        :prefix => "32",
+        :gateway => "88.99.244.65"
+      },
+      :external_ipv6 => {
+        :interface => "enp0s31f6",
+        :role => :external,
+        :family => :inet6,
+        :address => "2a01:4f8:10b:492::2",
+        :prefix => "64",
+        :gateway => "fe80::1"
+      }
+    }
+  },
+  :squid => {
+    :version => 4,
+    :cache_mem => "32768 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]"
+)