X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpostgres%2Fmanifests%2Fbackup_server%2Fglobals.pp;h=bdac822214ee1b5fff6f289341b8d6d793772f7f;hb=17c670c8cc6dc55603894c8a59af5d0d6a2f892e;hp=f89a368f118b92980c9e402bd756a6a31f121a25;hpb=fa71f654c67691b4b4a276cf936eb76cab6d60f6;p=mirror%2Fdsa-puppet.git diff --git a/modules/postgres/manifests/backup_server/globals.pp b/modules/postgres/manifests/backup_server/globals.pp index f89a368f1..bdac82221 100644 --- a/modules/postgres/manifests/backup_server/globals.pp +++ b/modules/postgres/manifests/backup_server/globals.pp @@ -1,11 +1,14 @@ +# Global definitions for the postgres::backup_server setup # -class postgres::backup_server::globals { - $make_base_backups = '/usr/local/bin/postgres-make-base-backups' - $pgpassfile = '/home/debbackup/.pgpass' - $sshkeys_sources = '/etc/dsa/postgresql-backup/sshkeys-sources' - - $tag_base_backup = "postgresql::server::backup-source-make-base-backup-entry" - $tag_source_sshkey = "postgresql::server::backup-source-sshkey" - $tag_source_pgpassline = "postgresql::server::backup-source-pgpassline" - $tag_dsa_check_backupp = "postgresql::server::backup-dsa-check-backuppg" +# @param pgpassfile pg password file for pg_basebackup runs +# @param base_backup_clusters where to store the list of clusters to make base backups of +class postgres::backup_server::globals( + String $pgpassfile = '/home/debbackup/.pgpass', + String $sshkeys_sources = '/etc/dsa/postgresql-backup/sshkeys-sources', + String $base_backup_clusters = '/etc/dsa/postgresql-backup/base-backup-clusters', +) { + $tag_base_backup = 'postgresql::server::backup-source-make-base-backup-entry' + $tag_source_sshkey = 'postgresql::server::backup-source-sshkey' + $tag_source_pgpassline = 'postgresql::server::backup-source-pgpassline' + $tag_dsa_check_backupp = 'postgresql::server::backup-dsa-check-backuppg' }