stop using virtual resources for ferm::rule
[mirror/dsa-puppet.git] / modules / bacula / manifests / client.pp
index 580115d..3027930 100644 (file)
@@ -63,7 +63,7 @@ class bacula::client inherits bacula {
                file { '/etc/systemd/system/bacula-fd.service.d/user.conf':
                        ensure  => absent,
                }
-               systemd::override { 'bacula-fd':
+               dsa_systemd::override { 'bacula-fd':
                        content => @(EOT)
                                [Service]
                                ExecStart=
@@ -74,20 +74,14 @@ class bacula::client inherits bacula {
                file { '/etc/systemd/system/bacula-fd.service.d/user.conf':
                        ensure  => absent,
                }
-               systemd::override { 'bacula-fd':
+               dsa_systemd::override { 'bacula-fd':
                        ensure  => absent,
                }
        }
 
-       @ferm::rule { 'dsa-bacula-fd-v4':
-               domain      => '(ip)',
+       ferm::rule { 'dsa-bacula-fd':
+               domain      => '(ip ip6)',
                description => 'Allow bacula access from storage and director',
-               rule        => "proto tcp mod state state (NEW) dport (${bacula_client_port}) saddr (${bacula_director_ip}) ACCEPT",
+               rule        => "proto tcp mod state state (NEW) dport (${bacula_client_port}) saddr (${bacula_director_ip_addrs}) 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_ip6}) ACCEPT",
-       #}
 }