X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=modules%2Fbacula%2Fmanifests%2Fdirector.pp;h=c60e8b2edd43f13c88f6da88131d45560588922f;hb=e4f2cb33ec506e2ee52d93ba09bd13cb93bc9466;hp=40720b7496c7ff8f05fd2e99354fed44ab4d5f6b;hpb=0b542d43d901e68c421958d59642a67f5ebbbd53;p=dsa-puppet.git diff --git a/modules/bacula/manifests/director.pp b/modules/bacula/manifests/director.pp index 40720b74..c60e8b2e 100644 --- a/modules/bacula/manifests/director.pp +++ b/modules/bacula/manifests/director.pp @@ -18,6 +18,7 @@ class bacula::director inherits bacula { ensure => directory, mode => 755, group => bacula, + purge => true, notify => Exec["bacula-director restart"] ; "/etc/bacula/bacula-dir.conf": @@ -50,7 +51,14 @@ class bacula::director inherits bacula { ; } } - $allhosts = keys($site::allnodeinfo) - +# $allhosts = keys($site::allnodeinfo) + $allhosts = [ "berlioz.debian.org", "biber.debian.org", "draghi.debian.org" ] bacula_client { $allhosts: } + + @ferm::rule { 'dsa-bacula-dir': + domain => '(ip ip6)', + description => 'Allow bacula access from localhost', + rule => "proto tcp mod state state (NEW) dport (bacula-dir) saddr ($bacula_director_address localhost) ACCEPT", + } + }