Add (SQLite + Postgres) support and automatic migration to matrix-dimension

This commit is contained in:
Slavi Pantaleev
2020-12-14 21:01:47 +02:00
parent 0790a7b2a8
commit 2a502db239
5 changed files with 67 additions and 7 deletions

View File

@ -716,7 +716,7 @@ matrix_dimension_systemd_required_services_list: |
# Postgres is the default, except if not using `matrix_postgres` (internal postgres)
matrix_dimension_database_engine: "{{ 'postgres' if matrix_postgres_enabled else 'sqlite' }}"
matrix_dimension_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'as.dimension.db') | to_uuid }}"
matrix_dimension_database_password: "{{ matrix_synapse_macaroon_secret_key | password_hash('sha512', 'dimension.db') | to_uuid }}"
######################################################################
#
@ -1092,13 +1092,12 @@ matrix_postgres_additional_databases: |
}] if (matrix_mx_puppet_steam_enabled
and matrix_mx_puppet_steam_database_engine == 'postgres'
and matrix_mx_puppet_steam_database_hostname == 'matrix-postgres') else [])
+ ([{
+
([{
'name': matrix_dimension_database_db_name,
'username': matrix_dimension_database_username,
'password': matrix_dimension_database_password,
}] if (matrix_dimension_enabled
and matrix_dimension_database_engine == 'postgres'
and matrix_dimension_database_hostname == 'matrix-postgres') else [])
}] if (matrix_dimension_enabled and matrix_dimension_database_engine == 'postgres' and matrix_dimension_database_hostname == 'matrix-postgres') else [])
}}
######################################################################