add restore from backup support

This commit is contained in:
ace
2023-02-17 18:13:08 +03:00
parent 4f40c189f7
commit a2cfbde7e3
7 changed files with 42 additions and 40 deletions

View File

@ -1,9 +1,9 @@
postgresql_version: "15.2"
# Options
postgresql_group: "postgresql"
postgresql_play_group: "postgresql"
postgresql_superuser_db: "postgres"
postgresql_superuser_name: "postgres"
postgresql_superuser_username: "postgres"
postgresql_superuser_password: "postgres"
# SSL options
@ -12,8 +12,15 @@ postgresql_ssl_keep_nonssl_endpoint: false
postgresql_self_signed_cert: true
postgresql_self_signed_cert_name: "cert"
## Backup options
## Backup and restore options
postgresql_wal_g_install: false
postgresql_wal_g_restore: false
postgresql_wal_g_force_delete_and_restore: false
postgresql_wal_g_config_name: ".walg.json"
postgresql_wal_g_restore_config_name: ".walg-restore.json"
postgresql_wal_g_binary_name: "wal-g-pg"
postgresql_wal_g_postgresql_pitr: "LATEST"
postgresql_promote_trigger_file: "{{ postgresql_data_dir }}/promote.trigger"
postgresql_password_encryption_algorithm: "scram-sha-256"
postgresql_default_parameters:
@ -47,6 +54,7 @@ postgresql_default_parameters:
lc_time: '{{ postgresql_system_locale | default("en_US.UTF-8") }}'
default_text_search_config: 'pg_catalog.english'
password_encryption: '{{ postgresql_password_encryption_algorithm }}'
promote_trigger_file: '{{ postgresql_promote_trigger_file }}'
postgresql_backup_parameters:
archive_command: "{{ postgresql_archive_command | default('cd .')}}"