]> Frank Brehm's Git Trees - pixelpark/hiera.git/commitdiff
spk-taiga - backup cron
authornils.wagner <nils.wagner@pixelpark.com>
Mon, 4 Apr 2016 09:38:46 +0000 (11:38 +0200)
committernils.wagner <nils.wagner@pixelpark.com>
Mon, 4 Apr 2016 09:38:46 +0000 (11:38 +0200)
customer/spk-taiga/taiga-sparkasse-de.pixelpark.net.yaml

index 31289899444c557fe268485c06d3cd68831150af..d4449d8f2d50e2d93224947ac84986e2044accae 100644 (file)
@@ -140,12 +140,16 @@ site::profile::postgresql_server::databases:
 
 site::profile::cron:
   postgres_backup_create:
+    ensure: present
     command: /usr/pgsql-9.5/bin/pg_dump taiga > /var/backup/taiga-$(date +%Y-%m-%d).sql
     minute: 00
     hour: 4
+    tagret: postgres
     user: postgres
   postgres_backup_remove:
+    ensure: present
     command: find /var/backup/ -name "taiga-*.sql" -type f -ctime +7 -exec rm -f {} \;
     minute: 00
     hour: 22
+    tagret: postgres
     user: postgres