From 8231709362826b0d862990e7a6b54b4cb2d7f6a7 Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Sat, 24 Feb 2018 12:20:35 +0100 Subject: [PATCH] Only add host to bacula dsa client list if we do backups for it --- modules/bacula/manifests/client.pp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/modules/bacula/manifests/client.pp b/modules/bacula/manifests/client.pp index f8f83f202..580115d6d 100644 --- a/modules/bacula/manifests/client.pp +++ b/modules/bacula/manifests/client.pp @@ -5,6 +5,14 @@ class bacula::client inherits bacula { @@bacula::node { $::fqdn: bacula_client_port => $bacula::bacula_client_port, } + + @@concat::fragment { "bacula-dsa-client-list::$fqdn": + target => $bacula::bacula_dsa_client_list , + content => @("EOF"), + ${fqdn} + | EOF + tag => $bacula::tag_bacula_dsa_client_list, + } } package { ['bacula-fd']: @@ -82,12 +90,4 @@ class bacula::client inherits bacula { # description => 'Allow bacula access from storage and director', # rule => "proto tcp mod state state (NEW) dport (bacula-fd) saddr (${bacula_director_ip6}) ACCEPT", #} - - @@concat::fragment { "bacula-dsa-client-list::$fqdn": - target => $bacula::bacula_dsa_client_list , - content => @("EOF"), - ${fqdn} - | EOF - tag => $bacula::tag_bacula_dsa_client_list, - } } -- 2.20.1