]> git.openstreetmap.org Git - chef.git/commitdiff
Fix munin for internal-only hosts at Bytemark
authorTom Hughes <tom@compton.nu>
Mon, 9 May 2016 17:30:15 +0000 (18:30 +0100)
committerTom Hughes <tom@compton.nu>
Mon, 9 May 2016 17:33:32 +0000 (18:33 +0100)
cookbooks/munin/templates/default/munin.conf.erb
cookbooks/networking/recipes/default.rb
roles/grisu.rb
roles/ridley.rb

index 128d0080b19ce7bb99d8ed9c74a73704c9a2fd9a..79bdbda9a4b2c3f592c5e24bf38b8f58fa70b4a3 100644 (file)
@@ -36,6 +36,8 @@ unknown_limit 144
     address <%= client.internal_ipaddress || client.external_ipaddress %>
 <% elsif client[:networking][:roles][:external][:zone] == "ic" -%>
     address <%= client.internal_ipaddress || client.external_ipaddress %>
+<% elsif client[:networking][:roles][:external][:zone] == "bm" -%>
+    address <%= client.internal_ipaddress || client.external_ipaddress %>
 <% elsif client.external_ipaddress -%>
     address <%= client.external_ipaddress %>
 <% end -%>
index e23b1dae313b13beaed885d8edde69ed67d2fdca..485f852a6eb980cf24fd0bc3212672e1c59780ee 100644 (file)
@@ -221,8 +221,8 @@ end
     source zone
     dest "fw"
     proto "udp"
-    dest_ports "1194:1196"
-    source_ports "1194:1196"
+    dest_ports "1194:1197"
+    source_ports "1194:1197"
   end
 end
 
index 09e7a4e6aa9307e7a1a58ccbf18c644ed1da581c..e536c0f612a7ad6bbf29aa412d654dea471d5db2 100644 (file)
@@ -43,6 +43,13 @@ default_attributes(
         :peer => {
           :host => "fafnir.openstreetmap.org"
         }
+      },
+      :ucl2bm => {
+        :port => "1196",
+        :mode => "server",
+        :peer => {
+          :host => "ridley.openstreetmap.org"
+        }
       }
     }
   }
index 47e12e7d0012c80b736fe3a8be71b626abfab603..bb07b565fe21c7ac4c270b542599a27da6bbb61e 100644 (file)
@@ -67,9 +67,17 @@ default_attributes(
           :port => "1194"
         }
       },
-      :firefishy => {
+      :ucl2bm => {
         :port => "1196",
         :mode => "client",
+        :peer => {
+          :host => "grisu.openstreetmap.org",
+          :port => "1196"
+        }
+      },
+      :firefishy => {
+        :port => "1197",
+        :mode => "client",
         :peer => {
           :host => "home.firefishy.com",
           :port => "1194",