Make ssh allow tag specific to the target (archvsync role in this case)
authorPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 10:18:54 +0000 (12:18 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 21 Sep 2019 10:18:54 +0000 (12:18 +0200)
modules/roles/manifests/archvsync_base.pp
modules/roles/manifests/mirrormaster.pp

index c61d3fb..d51f260 100644 (file)
@@ -19,5 +19,5 @@ class roles::archvsync_base {
     target => '/home/archvsync/.ssh/authorized_keys',
   }
 
-  Ferm::Rule::Simple <<| tag == 'ssh::server::allow' |>>
+  Ferm::Rule::Simple <<| tag == 'ssh::server::allow::archvsync' |>>
 }
index 2d8d7d1..510f631 100644 (file)
@@ -3,7 +3,7 @@
 class roles::mirrormaster(
 ) {
   @@ferm::rule::simple { "dsa-ssh-from-mirrormaster-${::fqdn}":
-    tag         => 'ssh::server::allow',
+    tag         => 'ssh::server::allow::archvsync',
     description => 'Allow ssh access from the mirrormaster',
     port        => '22',
     saddr       => $base::public_addresses,