Alexandros Kosiaris has uploaded a new change for review. https://gerrit.wikimedia.org/r/181726
Change subject: backups: Support next pool directive ...................................................................... backups: Support next pool directive The Next pool directive is used to indicate the destination of migration and copy jobs. We did not have support for that, add it Change-Id: I0f7898e4d655b3dd8def3ed5c9d1547a858910ce --- M modules/bacula/manifests/director/pool.pp M modules/bacula/templates/bacula-dir-pool.erb 2 files changed, 8 insertions(+), 2 deletions(-) git pull ssh://gerrit.wikimedia.org:29418/operations/puppet refs/changes/26/181726/1 diff --git a/modules/bacula/manifests/director/pool.pp b/modules/bacula/manifests/director/pool.pp index c970767..1f03e58 100644 --- a/modules/bacula/manifests/director/pool.pp +++ b/modules/bacula/manifests/director/pool.pp @@ -17,6 +17,9 @@ # yes, no, defaults to yes. Whether autopruning will happen for this pool # $label_fmt # The format for autolabeled volumes. A good example can be "company-$numvols". +# $next_pool +# The pool that jobs will be migrated/copied to if specified. Default to +# undef # # Actions: # Will create a pool definition to be included by the director @@ -38,7 +41,8 @@ $recycle='yes', $autoprune='yes', $max_vol_bytes=undef, - $label_fmt=undef) { + $label_fmt=undef, + $next_pool=undef) { file { "/etc/bacula/conf.d/pool-${name}.conf": ensure => present, diff --git a/modules/bacula/templates/bacula-dir-pool.erb b/modules/bacula/templates/bacula-dir-pool.erb index b7c1a29..772e8e4 100644 --- a/modules/bacula/templates/bacula-dir-pool.erb +++ b/modules/bacula/templates/bacula-dir-pool.erb @@ -16,6 +16,8 @@ Recycle = <%= @recycle %> Catalog Files = <%= @catalog_files %> Recycle Oldest Volume = yes - # Next pool = # used for migrations + <%- if @next_pool -%> + Next pool = <%= @next_pool %> + <%- end -%> # Cleaning Prefix = # used with tapes } -- To view, visit https://gerrit.wikimedia.org/r/181726 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: newchange Gerrit-Change-Id: I0f7898e4d655b3dd8def3ed5c9d1547a858910ce Gerrit-PatchSet: 1 Gerrit-Project: operations/puppet Gerrit-Branch: production Gerrit-Owner: Alexandros Kosiaris <akosia...@wikimedia.org> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits