Commit Graph

23 Commits

Author SHA1 Message Date
Andrea Dell'Amico 312f327e0f Use the old 'find' command to remove the old backups, until we fix the bug of the new procedure. 2018-11-15 20:00:35 +01:00
Andrea Dell'Amico d8cb04249c library/roles/postgresql/files/postgresql-backup.sh: Fix a typo. 2018-11-15 16:05:13 +01:00
Andrea Dell'Amico 1bbe4f4de4 library/roles/postgresql/files/postgresql-backup.sh: Use a variable to build the correct backup directory. 2018-11-12 16:49:18 +01:00
Tommaso Piccioli a00237de06 postgres backup, cleanup fixed 2018-04-16 17:09:18 +02:00
Andrea Dell'Amico bdd0f79252 Fix the backup files permissions before exiting. 2018-04-09 13:17:04 +02:00
Andrea Dell'Amico 3bc6406f44 Change the postgresql backup script so that it can backup local databases as postgres user, without authentication. 2018-04-09 13:15:27 +02:00
Andrea Dell'Amico 27c8815b25 library/roles/postgresql/files/postgresql-backup.sh: Fix the command line that builds the list of DBs to be backed up. 2017-12-28 17:47:18 +01:00
Tommaso Piccioli e07f621b4c crontab postgres dump log enhanced 2017-11-29 12:39:18 +01:00
Andrea Dell'Amico af2f3f397c postgresql: Fix the letsencrypt and ssl tasks so that ssl can be disabled. 2017-11-21 18:06:23 +01:00
Andrea Dell'Amico fd700fe28c Add a random seep before restarting the postgresql and pgpool services after a certificate renewal. See https://support.d4science.org/issues/10229 2017-11-06 18:01:48 +01:00
Andrea Dell'Amico 2f914bcf2d library/roles/postgresql/files/postgresql-letsencrypt-acme.sh: postgresql needs a full restart when the SSL certificate changes. 2017-08-21 13:26:14 +02:00
Andrea Dell'Amico 4edbd0350a library/roles/postgresql: Fix the ssl key permissions. 2017-01-19 19:10:12 +01:00
Andrea Dell'Amico 31b56fd211 library/roles/postgresql/files/postgresql-backup.cron: Log the start and end backup date. 2016-11-28 18:40:06 +01:00
Andrea Dell'Amico d3d621802f library/roles/postgresql: Fix the pgpass creation. 2016-11-28 18:38:54 +01:00
Andrea Dell'Amico 5f73bac089 library/roles/postgresql: Fix a broken check in postgresql-backup.cron. Now if backuppc is running, the cron job does nothing. 2016-11-28 17:58:23 +01:00
Andrea Dell'Amico b557e575f5 library/roles/postgresql: tons of fixes to the postgresql/pgpool tasks. Now the pgpool HA is handled. 2016-10-20 17:10:17 +02:00
Andrea Dell'Amico ebe5e5e79f library/roles/postgresql: Configure ssl for pgpool too, if enable. Option to force ssl client connections to postgres. 2016-07-12 16:19:48 +02:00
Andrea Dell'Amico 293b71f036 library/roles: Fix all the letsencrypt hook script. We need to use the FQDN hostname. 2016-06-23 14:05:11 +02:00
Andrea Dell'Amico e7f5d588b5 library/roles/postgresql: Manage SSL and install the letsencrypt acme hook if needed. 2016-06-21 19:58:26 +02:00
Andrea Dell'Amico 4067c73b99 library/roles/mysql/templates/mysql-backup.cron.j2, library/roles/postgresql/files/postgresql-backup.cron: do not perform backups if backuppc is running successfully. 2016-03-21 14:40:56 +01:00
Tommaso Piccioli 44233dd5f7 Fixed error in variable test 2016-01-18 09:49:46 +01:00
Andrea Dell'Amico 8a23cbc153 library/roles/postgresql: Give the possibility to disable the postgresql backups. Create the list of dbs that need a backup automatically, if one is not provided. 2016-01-11 17:43:50 +01:00
Andrea Dell'Amico 73d37f81a6 Major refactoring. Moved all the library roles under 'library/roles' and changed all the occurrances inside all the playbooks. 2015-05-28 11:32:57 +02:00