Andrea Dell'Amico
fc296092d1
postgresql new defaults: version 10, postgis 2.4
2019-04-11 20:49:01 +02:00
Andrea Dell'Amico
9e343a0bf1
postgresql: manage the change of the data directory.
2019-03-26 18:41:03 +01:00
Andrea Dell'Amico
3f7e05bdf0
postgres: fix the apt tasks.
2019-03-26 17:42:22 +01:00
Tommaso Piccioli
0ac74bb9cf
postgres old dump remove fix
2018-11-19 17:47:19 +01:00
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
Andrea Dell'Amico
2d6676df50
Various fixes to support debian 9.
2018-09-16 13:51:34 +02:00
Andrea Dell'Amico
bd69071947
Refactor: include: ==> import_tasks:
2018-08-09 17:48:03 +02:00
Andrea Dell'Amico
79d766b04b
automatically build the list of db that we want to backup on postgres.
2018-06-28 10:37:52 +02: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
Andrea Dell'Amico
6bc7abf963
postgresql: add a task to manage user privileges.
2017-12-18 18:44:17 +01:00
Andrea Dell'Amico
29b7e824e5
postgresql: comment out the task that handle the schemas. The conditionals do not work.
2017-12-11 18:51:28 +01:00
Andrea Dell'Amico
11b1f31920
postgresql: optionally install/delete schemas inside a database.
2017-12-08 11:25:48 +01:00
Andrea Dell'Amico
5bb0a5b1e5
library/roles/postgresql/defaults/main.yml: Fix a wrong variable name.
2017-12-06 13:26:08 +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
c848feb9b7
postgresql letsencrypt tasks: Fix some tasks names.
2017-11-06 18:20:24 +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
b4cb0771c8
More tuning of the workspace postgresql instance.
2017-08-23 16:41:17 +02:00
Andrea Dell'Amico
ea659806cb
Fix some typos.
2017-08-23 15:05:03 +02:00
Andrea Dell'Amico
7d9b24174a
postgresql: Use different tasks to configure the logging system and the autovacuum.
2017-08-23 14:06:58 +02:00
Andrea Dell'Amico
cf4c3d56cc
library/roles/postgresql/defaults/main.yml: New default version: 9.6
2017-08-23 13:15:43 +02: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
3199eb7262
library/roles/postgresql/templates/pgpool.conf.j2: Add a new watchdog option to the pgpool conf. No functionality changes, only a new default from the new version.
2017-05-16 15:24:55 +02:00
Andrea Dell'Amico
ee949621e9
library/roles/postgresql/tasks/postgresql-backup.yml: Add the pg_db tag to the relevant backup tasks.
2017-04-14 18:29:52 +02:00
Andrea Dell'Amico
f7ce869b01
library/roles/postgresql/tasks/configure-access.yml: Add the pg_db tags to the tasks that set pg_hba.conf.
2017-04-10 11:45:40 +02:00
Andrea Dell'Amico
f8254e1a82
library/roles/postgresql: Various fixes for some complex cases.
2017-03-07 13:12:36 +01:00
Andrea Dell'Amico
4edbd0350a
library/roles/postgresql: Fix the ssl key permissions.
2017-01-19 19:10:12 +01:00
Andrea Dell'Amico
62766b201d
library/roles/postgresql: The conf directory is now a variable.
2016-12-18 19:12:51 +01:00
Andrea Dell'Amico
c4ef41b069
library/roles/postgresql/templates/pg_backup-default.j2: Fix the list of DBs to be backupped.
2016-11-30 18:41:39 +01:00
Andrea Dell'Amico
c1806aafaf
library/roles/postgresql/tasks/manage_pg_db.yml: Fix a description.
2016-11-28 19:40:00 +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
e0bc74182b
d4science-ghn-cluster: Reconfigure the dev pgpool cluster to run with HA enabled. Tweak some parameters to achieve a better reliability.
2016-11-09 18:40:42 +01:00
Andrea Dell'Amico
54a50c9307
d4science-ghn-cluster: New production geonetwork server.
...
library/roles/smartgears/smartgears-nginx-frontend/templates/generic-smartgears-virtualhost.j2: Fix the virtualhost so that it works when some of the optional variables are undefined.
2016-10-26 20:08:28 +02:00
Andrea Dell'Amico
c8463c62a9
library/roles/postgresql: Fix the pgpool recovery scripts to be compatible with pgpool 2.5.
2016-10-26 18:17:03 +02: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
549e18af31
library/roles/postgresql/tasks/manage_pg_db.yml: Ansible 2 compatibility
2016-10-05 17:56:44 +02:00
Andrea Dell'Amico
6c3822e2e8
library/roles/postgresql/defaults/main.yml: Set psql_postgresql_install as False by default.
2016-10-05 17:56:44 +02:00
Andrea Dell'Amico
225e70a693
library/roles/postgresql: Fix the management of variables that are used to decide to create ad DB or not.
2016-09-13 16:34:08 +02:00
Andrea Dell'Amico
e8eb9fd144
library/roles/postgresql/defaults/main.yml: Remove the 'checkpoint_segments' property. It does not exist anymore on postgresql 9.5.
2016-09-13 13:53:48 +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
2641b4d863
library/roles/postgresql/tasks/configure-access.yml: Fix a variable that can be undefined.
2016-06-27 13:38:11 +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
66caef7db1
library/roles/ckan/ckan: Lot of modifications so that the playbooks are able to install CKAN with the services distributed on different machines.
...
library/roles/postgresql/tasks: Fix the SSL certificates paths.
2016-06-21 23:24:48 +02:00