Add a minimal historical_master (archive.debian.org-master) role.
authorPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 10:39:32 +0000 (12:39 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 10:39:39 +0000 (12:39 +0200)
The master does not have any special rsync config that is not also
preesnt on the mirrors (and currently the historical master also is a
historical mirror).

hieradata/nodes/sibelius.debian.org.yaml [new file with mode: 0644]
modules/roles/manifests/historical_master.pp [new file with mode: 0644]

diff --git a/hieradata/nodes/sibelius.debian.org.yaml b/hieradata/nodes/sibelius.debian.org.yaml
new file mode 100644 (file)
index 0000000..0142973
--- /dev/null
@@ -0,0 +1,3 @@
+---
+classes:
+  - roles::historical_master
diff --git a/modules/roles/manifests/historical_master.pp b/modules/roles/manifests/historical_master.pp
new file mode 100644 (file)
index 0000000..248c832
--- /dev/null
@@ -0,0 +1,9 @@
+class roles::historical_master {
+  # export ssh allow rules for hosts that we should be able to access
+  @@ferm::rule::simple { "dsa-ssh-from-historical_master-${::fqdn}":
+    tag         => 'ssh::server::from::historical_master',
+    description => 'Allow ssh access from historical-master',
+    port        => '22',
+    saddr       => $base::public_addresses,
+  }
+}