Commit Graph

85 Commits

Author SHA1 Message Date
Andrea Dell'Amico 758b309594
Add a .gitignore. 2023-10-15 15:12:34 +02:00
Andrea Dell'Amico 05277e8038
Fix a typo. The r mode was not removed. 2023-10-11 18:53:56 +02:00
Andrea Dell'Amico cf4d866f0c
The file must be writeable... 2023-10-11 18:26:08 +02:00
Andrea Dell'Amico df6cf284e4
Use mode=r for the temp file too. 2023-10-11 18:20:29 +02:00
Andrea Dell'Amico 36ce397a79
Try again to open as a string. 2023-10-11 18:10:58 +02:00
Andrea Dell'Amico 27f5e6f0a7
Open the file as binary. 2023-10-11 18:01:56 +02:00
Andrea Dell'Amico 643ca47814
Fix the meta. 2023-10-11 17:56:26 +02:00
Andrea Dell'Amico b78149be59
Do not open the file as binary. 2023-10-11 17:56:16 +02:00
Andrea Dell'Amico 7a24ebf9be
New defaults: postgresql 16, postgis 3. 2023-10-11 11:54:01 +02:00
Andrea Dell'Amico 9df46eb4fb
Fix a typo. 2023-10-11 11:40:26 +02:00
Andrea Dell'Amico 07a81fbba9
Fix a typo. 2023-10-11 11:35:16 +02:00
Andrea Dell'Amico 1094339af2
Install python3-psycopg2 when Ubuntu >= 20. 2023-10-11 11:28:03 +02:00
Andrea Dell'Amico c0158f0c5b Merge pull request 'Update 'templates/postgresql-backup.sh.j2'' (!5) from tpiccioli-patch-1 into master
Reviewed-on: #5
2023-03-24 19:13:42 +01:00
Tommaso Piccioli 8b13a1377c Update 'templates/postgresql-backup.sh.j2' 2023-03-24 19:07:57 +01:00
Tommaso Piccioli a4ceaaf5b2 revert c9aa64f79a
revert Update 'templates/postgresql-backup.sh.j2'
2023-03-24 19:05:12 +01:00
Tommaso Piccioli c9aa64f79a Update 'templates/postgresql-backup.sh.j2' 2023-03-24 19:01:45 +01:00
Andrea Dell'Amico c38d2fb895 Merge pull request 'Update 'templates/postgresql-backup.sh.j2'' (!4) from tpiccioli-patch-1 into master
Reviewed-on: #4
2023-03-23 16:22:54 +01:00
Tommaso Piccioli 56cdc39d7b Update 'templates/postgresql-backup.sh.j2'
- Cleanup older dumps leaving N_DAYS_TO_SPARE dump, don't use find by date
- clean old dumps before new dump
2023-03-23 16:15:08 +01:00
Andrea Dell'Amico c3f33257ad Merge pull request 'using mtime instead of atime with find' (!3) from tpiccioli-patch-1 into master
Reviewed-on: #3
2023-03-03 18:05:39 +01:00
Tommaso Piccioli 66227f98b8 using mtime instead of atime with find 2023-03-03 17:57:19 +01:00
Andrea Dell'Amico 7b2a0a1b1e
Fix the letsencrypt defaults. 2021-10-09 17:21:53 +02:00
Andrea Dell'Amico 974c435e20
New max_slot_wal_keep_size default. 2021-09-21 19:00:26 +02:00
Andrea Dell'Amico 2d4f05bc3a
Fix the permissions of /usr/local/sbin/postgresql_wal_backup_and_removal 2021-09-18 14:35:35 +02:00
Andrea Dell'Amico d1bd4ab919
Set wal_keep_size to the default. 2021-09-18 14:31:55 +02:00
Andrea Dell'Amico 596337db58
The proposed value of 'wal_keep_size' was wrong. 2021-09-18 14:24:10 +02:00
Andrea Dell'Amico 3e01e4fa34 Merge pull request 'if master check added' (!2) from tpiccioli/ansible-role-postgresql:master into master
Reviewed-on: #2
2021-09-17 23:28:47 +02:00
Tommaso Piccioli 84b1c899ef if master check added 2021-09-17 17:56:29 +02:00
Andrea Dell'Amico ac009a330a
Add options to the streaming replication conf. 2021-09-17 15:41:38 +02:00
Andrea Dell'Amico 44c99e81bd Merge pull request 'backup and clean of wal files' (!1) from tpiccioli/ansible-role-postgresql:master into master
Reviewed-on: #1
2021-09-17 11:33:59 +02:00
Tommaso Piccioli 7f799023d9 backup and clean of wal files 2021-09-16 23:54:17 +02:00
Andrea Dell'Amico 8af951180e
Always reload the service. 2021-07-05 11:47:51 +02:00
Andrea Dell'Amico c559b6b0f6
Define psql_wal_files_archiving_enabled 2021-06-01 23:59:18 +02:00
Andrea Dell'Amico d872e67c8c Another template that pertains to pgpool. 2021-04-07 19:17:02 +02:00
Andrea Dell'Amico 14968c9da3 Remove the sudoers file. It's pgpool stuff. 2021-04-07 19:10:30 +02:00
Andrea Dell'Amico d73add956c Flush the handlers when needed. 2021-04-06 16:55:11 +02:00
Andrea Dell'Amico 50e8e57c33 Fix the path of the active.standby file. 2021-04-06 16:19:35 +02:00
Andrea Dell'Amico f52f810ce2 Fix a check. 2021-04-06 16:15:58 +02:00
Andrea Dell'Amico b406707653 Fix the .pgpass path. 2021-04-06 16:08:16 +02:00
Andrea Dell'Amico 32ce224928 Add the commands that start the replication. 2021-04-06 16:03:26 +02:00
Andrea Dell'Amico ebec0f1c0a Use ssl for the replication connection if possible 2021-04-06 14:52:22 +02:00
Andrea Dell'Amico 8e5010fd65 Limit the replica user to the replication db. 2021-04-06 14:43:49 +02:00
Andrea Dell'Amico ad879841f4 Passwords are still md5. 2021-04-06 14:35:54 +02:00
Andrea Dell'Amico 1d447c464a Fix the loop tasks. 2021-04-06 14:33:15 +02:00
Andrea Dell'Amico 7f52dbbe4f Remove a non existing option. 2021-04-06 14:28:10 +02:00
Andrea Dell'Amico 74af14a437 Fix a typo. 2021-04-06 14:24:13 +02:00
Andrea Dell'Amico 5f6bf2bfa8 Do not reload after adding the replica user. 2021-04-06 14:17:47 +02:00
Andrea Dell'Amico dbb81296d7 Basic config support of streaming replication. 2021-04-06 14:15:37 +02:00
Andrea Dell'Amico d78291926e naming cleanup. 2021-04-05 18:53:29 +02:00
Andrea Dell'Amico 573f87923f Another undefined variable. 2021-04-03 16:28:37 +02:00
Andrea Dell'Amico 66706d244e Default for psql_wal_archiving_log_dir 2021-04-03 16:04:35 +02:00