Try to collect directors before we restart fd
authorPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 06:59:48 +0000 (08:59 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 25 Sep 2019 06:59:48 +0000 (08:59 +0200)
modules/bacula/manifests/client.pp

index 3505300..8890cb7 100644 (file)
@@ -34,7 +34,9 @@ class bacula::client(
   }
 
   if $ensure == 'present' {
-    Bacula::Client::Director <<| tag == "bacula::to-fd::${director_server}" |>>
+    Bacula::Client::Director <<| tag == "bacula::to-fd::${director_server}" |>> {
+      before => Exec['bacula-fd restart-when-idle'],
+    }
 
     @@bacula::storage::client { $client:
       tag             => "bacula::to-storage::${storage_server}",