WIP: postgres: create databases for all services

If a service is enabled, a database for it is created in postgres with a uniqque password. The service can then use this database for data storage instead of relying on sqlite.
This commit is contained in:
2020-11-29 15:20:22 +01:00
parent d08b27784f
commit d9f4914e0d
16 changed files with 118 additions and 21 deletions

View File

@ -105,10 +105,10 @@ database:
# Connection string to connect to the Postgres instance
# with username "user", password "pass", host "localhost" and database name "dbname".
# Modify each value as necessary
#connString: "postgres://user:pass@localhost/dbname?sslmode=disable"
connString: "postgres://matrix_puppet_discord:{{ matrix_additional_databases | selectattr('name', 'equalto', 'matrix_puppet_discord') | map(attribute='pass') | first }}@{{ matrix_postgres_connection_hostname }}/matrix_puppet_discord?sslmode=disable"
# Use SQLite3 as a database backend
# The name of the database file
filename: /data/database.db
#filename: /data/database.db
logging:
# Log level of console output