]> git.openstreetmap.org Git - chef.git/commitdiff
Add role for falkor
authorTom Hughes <tom@compton.nu>
Sun, 17 May 2020 15:10:17 +0000 (16:10 +0100)
committerTom Hughes <tom@compton.nu>
Sun, 17 May 2020 15:10:49 +0000 (16:10 +0100)
roles/falkor.rb [new file with mode: 0644]
roles/vodafone-cz.rb [new file with mode: 0644]

diff --git a/roles/falkor.rb b/roles/falkor.rb
new file mode 100644 (file)
index 0000000..3a92dd3
--- /dev/null
@@ -0,0 +1,46 @@
+name "falkor"
+description "Master role applied to falkor"
+
+default_attributes(
+  :hardware => {
+    :shm_size => "6g"
+  },
+  :networking => {
+    :interfaces => {
+      :external_ipv4 => {
+        :interface => "ens160",
+        :role => :external,
+        :family => :inet,
+        :address => "81.27.197.69",
+        :prefix => "26",
+        :gateway => "81.27.197.65"
+      },
+      :external_ipv6 => {
+        :interface => "ens160",
+        :role => :external,
+        :family => :inet6,
+        :address => "2a02:8301:0:1::69",
+        :prefix => "64",
+        :gateway => "2a02:8301:0:1::1"
+      }
+    }
+  },
+  :squid => {
+    :version => 4,
+    :cache_mem => "4096 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 => "czechia.render.openstreetmap.org"
+  }
+)
+
+run_list(
+  "role[vodafone-cz]",
+  "role[tilecache]"
+)
diff --git a/roles/vodafone-cz.rb b/roles/vodafone-cz.rb
new file mode 100644 (file)
index 0000000..d23ab15
--- /dev/null
@@ -0,0 +1,20 @@
+name "vodafone-cz"
+description "Role applied to all servers at Vodafone CZ"
+
+default_attributes(
+  :hosted_by => "Vodafone",
+  :location => "Prague, Czech Republic",
+  :networking => {
+    :nameservers => ["62.24.64.2", "2a02:8301:0:10::3", "2001:4860:4860::8888"]
+  }
+)
+
+override_attributes(
+  :ntp => {
+    :servers => ["0.cz.pool.ntp.org", "1.cz.pool.ntp.org", "europe.pool.ntp.org"]
+  }
+)
+
+run_list(
+  "role[cz]"
+)