Bacula understands v6 too, so add rule for that
[mirror/dsa-puppet.git] / modules / bacula / manifests / client.pp
index 879978c..baf0040 100644 (file)
@@ -30,9 +30,15 @@ class bacula::client inherits bacula {
       refreshonly => true;
   }
 
-  @ferm::rule { 'dsa-bacula-fd':
+  @ferm::rule { 'dsa-bacula-fd-v4':
     domain      => '(ip)',
     description => 'Allow bacula access from storage and director',
     rule        => "proto tcp mod state state (NEW) dport (bacula-fd) saddr ($bacula_director_address) ACCEPT",
   }
+
+  @ferm::rule { 'dsa-bacula-fd-v6':
+    domain      => '(ip6)',
+    description => 'Allow bacula access from storage and director',
+    rule        => "proto tcp mod state state (NEW) dport (bacula-fd) saddr ($bacula_director_address) ACCEPT",
+  }
 }