X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=modules%2Fpostgres%2Fmanifests%2Fbackup_server%2Fglobals.pp;h=327ed6ecac39b2e517b5885f32b4d5b8a1ff490b;hb=06d5a4b60525258ffd7f4ad8d350a0785a249bf5;hp=b9713730db8899eb2884d58df5262cda2f5d85cb;hpb=06b5ef2cf5af685b2e35f80bc108e0d5d21b0add;p=mirror%2Fdsa-puppet.git diff --git a/modules/postgres/manifests/backup_server/globals.pp b/modules/postgres/manifests/backup_server/globals.pp index b9713730d..327ed6eca 100644 --- a/modules/postgres/manifests/backup_server/globals.pp +++ b/modules/postgres/manifests/backup_server/globals.pp @@ -1,10 +1,16 @@ +# Global definitions for the postgres::backup_server setup # -class postgres::backup_server::globals { - $pgpassfile = '/home/debbackup/.pgpass' - $sshkeys_sources = '/etc/dsa/postgresql-backup/sshkeys-sources' - $make_base_backups = '/usr/local/bin/postgres-make-base-backups' - $base_backup_clusters = '/etc/dsa/postgresql-backup/base-backup-clusters' - +# @param backup_unix_user unix user on the backup host +# @param backup_unix_group group of unix user on the backup host +# @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 $backup_unix_user, + String $backup_unix_group = $backup_unix_user, + String $pgpassfile = "/home/${backup_unix_user}/.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'