Give the RestoreFiles Job needs a pool. any pool.
authorPeter Palfrader <peter@palfrader.org>
Tue, 24 Sep 2019 20:36:57 +0000 (22:36 +0200)
committerPeter Palfrader <peter@palfrader.org>
Tue, 24 Sep 2019 20:36:57 +0000 (22:36 +0200)
modules/bacula/manifests/director.pp
modules/bacula/templates/bacula-dir.conf.erb

index 8af23cf..c868398 100644 (file)
@@ -15,6 +15,9 @@ class bacula::director(
   Optional[String] $db_sslca = undef,
 ) inherits bacula {
 
+  # the RestoreFiles Job needs a Pool.  Any valid pool.
+  $some_pool_name = "poolfull-${pool_name}-${bacula::bacula_director_address}"
+
   ensure_packages ( [
     'bacula-director-pgsql',
     'bacula-common',
index db41540..80aef43 100644 (file)
@@ -160,7 +160,7 @@ Job {
   Type = Restore
   Client = <%=@bacula_director_address%>-fd
   FileSet = "Standard Set"
-  Pool = poolfull-<%=@bacula_pool_name%>-<%=@bacula_director_address%>
+  Pool = <%= @some_pool_name %>
   Messages = Standard
   Where = /var/tmp/bacula-restores
 }