]> git.openstreetmap.org Git - chef.git/commitdiff
Enable snmp monitoring for Edgeuno machines
authorTom Hughes <tom@compton.nu>
Tue, 17 Mar 2020 22:33:42 +0000 (22:33 +0000)
committerTom Hughes <tom@compton.nu>
Tue, 17 Mar 2020 22:37:38 +0000 (22:37 +0000)
roles/edgeuno.rb

index d3416bba6bf1eac83b60af33630d2f4ea9278f09..ae31ce92dac304d61bfdb82060484ec7bd65f3bd 100644 (file)
@@ -5,6 +5,30 @@ default_attributes(
   :hosted_by => "EdgeUno",
   :location => "Bogotá, Colombia",
   :networking => {
   :hosted_by => "EdgeUno",
   :location => "Bogotá, Colombia",
   :networking => {
+    :firewall => {
+      :inet => [
+        {
+          :action => "ACCEPT",
+          :source => "net:200.25.3.8/31",
+          :dest => "fw",
+          :proto => "udp",
+          :dest_ports => "snmp",
+          :source_ports => "1024:",
+          :rate_limit => "-",
+          :connection_limit => "-"
+        },
+        {
+          :action => "ACCEPT",
+          :source => "net:200.25.3.8/31",
+          :dest => "fw",
+          :proto => "tcp",
+          :dest_ports => "snmp",
+          :source_ports => "1024:",
+          :rate_limit => "-",
+          :connection_limit => "-"
+        }
+      ]
+    },
     :nameservers => [
       "8.8.8.8",
       "1.1.1.1"
     :nameservers => [
       "8.8.8.8",
       "1.1.1.1"