Only add host to bacula dsa client list if we do backups for it
authorPeter Palfrader <peter@palfrader.org>
Sat, 24 Feb 2018 11:20:35 +0000 (12:20 +0100)
committerPeter Palfrader <peter@palfrader.org>
Sat, 24 Feb 2018 11:20:35 +0000 (12:20 +0100)
modules/bacula/manifests/client.pp

index f8f83f2..580115d 100644 (file)
@@ -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,
-       }
 }