Fix crontab entry
authorPeter Palfrader <peter@palfrader.org>
Sat, 28 Sep 2019 17:40:43 +0000 (19:40 +0200)
committerPeter Palfrader <peter@palfrader.org>
Sat, 28 Sep 2019 17:40:43 +0000 (19:40 +0200)
modules/postgres/manifests/backup_server.pp
modules/postgres/manifests/backup_server/globals.pp

index 94eb01e..1f95f3e 100644 (file)
@@ -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'),
   }
index e5509ba..b971373 100644 (file)
@@ -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'