Merge pull request #868 from foxcris/postgres-backup
- Added a postgres-backup role
This commit is contained in:
@ -1774,3 +1774,30 @@ matrix_registration_database_password: "{{ matrix_synapse_macaroon_secret_key |
|
||||
# /matrix-registration
|
||||
#
|
||||
######################################################################
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# matrix-postgres-backup
|
||||
#
|
||||
######################################################################
|
||||
|
||||
matrix_postgres_backup_connection_hostname: "{{ matrix_postgres_connection_hostname }}"
|
||||
matrix_postgres_backup_connection_port: "{{ matrix_postgres_connection_port }}"
|
||||
matrix_postgres_backup_connection_username: "{{ matrix_postgres_connection_username }}"
|
||||
matrix_postgres_backup_connection_password: "{{ matrix_postgres_connection_password }}"
|
||||
|
||||
# the default matrix synapse databse is not always part of the matrix_postgres_additional_databases variable thus we have to add it if the default database is used
|
||||
matrix_postgres_backup_databases: |
|
||||
{{
|
||||
(([{
|
||||
'name': matrix_synapse_database_database
|
||||
}] if (matrix_synapse_enabled and matrix_synapse_database_database == matrix_postgres_db_name and matrix_synapse_database_host == 'matrix-postgres') else [])
|
||||
+
|
||||
matrix_postgres_additional_databases)|map(attribute='name')|list
|
||||
}}
|
||||
|
||||
######################################################################
|
||||
#
|
||||
# /matrix-postgres-backup
|
||||
#
|
||||
######################################################################
|
Reference in New Issue
Block a user