Replace debbackup with parameterized username in most places
[mirror/dsa-puppet.git] / modules / postgres / manifests / backup_server / globals.pp
1 # Global definitions for the postgres::backup_server setup
2 #
3 # @param backup_unix_user      unix user on the backup host
4 # @param backup_unix_group     group of unix user on the backup host
5 # @param pgpassfile            pg password file for pg_basebackup runs
6 # @param base_backup_clusters  where to store the list of clusters to make base backups of
7 class postgres::backup_server::globals(
8   String $backup_unix_user,
9   String $backup_unix_group = $backup_unix_user,
10   String $pgpassfile = "/home/${backup_unix_user}/.pgpass",
11   String $sshkeys_sources = '/etc/dsa/postgresql-backup/sshkeys-sources',
12   String $base_backup_clusters = '/etc/dsa/postgresql-backup/base-backup-clusters',
13 ) {
14   $tag_base_backup = 'postgresql::server::backup-source-make-base-backup-entry'
15   $tag_source_sshkey = 'postgresql::server::backup-source-sshkey'
16   $tag_source_pgpassline = 'postgresql::server::backup-source-pgpassline'
17   $tag_dsa_check_backupp = 'postgresql::server::backup-dsa-check-backuppg'
18 }