From: Peter Palfrader Date: Sat, 28 Sep 2019 17:40:43 +0000 (+0200) Subject: Fix crontab entry X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=06b5ef2cf5af685b2e35f80bc108e0d5d21b0add;p=mirror%2Fdsa-puppet.git Fix crontab entry --- diff --git a/modules/postgres/manifests/backup_server.pp b/modules/postgres/manifests/backup_server.pp index 94eb01e9e..1f95f3eb8 100644 --- a/modules/postgres/manifests/backup_server.pp +++ b/modules/postgres/manifests/backup_server.pp @@ -21,7 +21,7 @@ class postgres::backup_server { } Concat::Fragment <<| tag == $postgres::backup_server::globals::tag_base_backup |>> - file { '/usr/local/bin/postgres-make-base-backups': + file { $postgres::backup_server::globals::make_base_backups: mode => '0555', content => template('postgres/backup_server/postgres-make-base-backups.erb'), } diff --git a/modules/postgres/manifests/backup_server/globals.pp b/modules/postgres/manifests/backup_server/globals.pp index e5509ba72..b9713730d 100644 --- a/modules/postgres/manifests/backup_server/globals.pp +++ b/modules/postgres/manifests/backup_server/globals.pp @@ -2,6 +2,7 @@ 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' $tag_base_backup = 'postgresql::server::backup-source-make-base-backup-entry'