X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fstorage.pp;h=3d9ac3b6b20b62f3d0325522d16ab66d371a31fe;hb=ded0c1ded4865d466a989762db959114892b917f;hp=3b1c5fb2f145cd351e2c96b109e2808d3c0442a8;hpb=ef31528583bd41f2507f394d9a113ed962bd20bb;p=mirror%2Fdsa-puppet.git diff --git a/modules/bacula/manifests/storage.pp b/modules/bacula/manifests/storage.pp index 3b1c5fb2f..3d9ac3b6b 100644 --- a/modules/bacula/manifests/storage.pp +++ b/modules/bacula/manifests/storage.pp @@ -44,16 +44,14 @@ class bacula::storage inherits bacula { notify => Exec['bacula-sd restart-when-idle'] } - ferm::rule { 'dsa-bacula-sd': - domain => '(ip ip6)', - description => 'Allow bacula-sd access from director and clients (i.e. all of Debian)', - rule => 'proto tcp mod state state (NEW) dport (bacula-sd) @subchain \'bacula-sd\' { saddr ($HOST_DEBIAN) ACCEPT; }', - notarule => true, - } - # allow access from director - Ferm::Rule::Simple <<| tag == 'bacula::director-to-storage' |>> { - port => $bacula::bacula_storage_port, + # allow access from director and fds + ferm::rule::simple { 'dsa-bacula-sd': + description => 'Access to the bacula-storage', + port => $bacula::bacula_storage_port, + target => 'bacula-sd', } + Ferm::Rule::Simple <<| tag == "bacula::director-to-storage::${bacula::bacula_director_address}" |>>; + Ferm::Rule::Simple <<| tag == "bacula::fd-to-storage::${::fqdn}" |>>; file { '/etc/bacula/storage-conf.d/empty.conf': content => '',