on ftp, ports, and security-master: store ssh allows to be collected on the syncproxies
authorPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 10:24:22 +0000 (12:24 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 10:24:37 +0000 (12:24 +0200)
modules/roles/manifests/ftp_master.pp
modules/roles/manifests/ports_master.pp
modules/roles/manifests/security_master.pp

index 7767589..f8d6f87 100644 (file)
@@ -11,4 +11,12 @@ class roles::ftp_master {
     key      => true,
     tlsaport => [443, 1873],
   }
+
+  # export ssh allow rules for hosts that we should be able to access
+  @@ferm::rule::simple { "dsa-ssh-from-syncproxy-${::fqdn}":
+    tag         => 'ssh::server::allow::ftp-master',
+    description => 'Allow ssh access from ftp-master',
+    port        => '22',
+    saddr       => $base::public_addresses,
+  }
 }
index 5fb48ba..31c6503 100644 (file)
@@ -18,4 +18,12 @@ class roles::ports_master {
     chown_user     => mini-dak-unpriv,
     root           => '/srv/ports-master.debian.org/ftp.upload',
   }
+
+  # export ssh allow rules for hosts that we should be able to access
+  @@ferm::rule::simple { "dsa-ssh-from-syncproxy-${::fqdn}":
+    tag         => 'ssh::server::allow::ports-master',
+    description => 'Allow ssh access from ports-master',
+    port        => '22',
+    saddr       => $base::public_addresses,
+  }
 }
index 83685a8..6f92d33 100644 (file)
@@ -11,4 +11,12 @@ class roles::security_master {
     max_clients => 50,
     sslname     => 'security-master.debian.org',
   }
+
+  # export ssh allow rules for hosts that we should be able to access
+  @@ferm::rule::simple { "dsa-ssh-from-syncproxy-${::fqdn}":
+    tag         => 'ssh::server::allow::security-master',
+    description => 'Allow ssh access from security-master',
+    port        => '22',
+    saddr       => $base::public_addresses,
+  }
 }