From 8c708b4e31222b3c5ccf69b8bd2f83b52d16544d Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Aug 09 2021 11:48:16 +0000 Subject: Change database url from postgres: to postgresql: This is needed to give us a working mailman even with the latest updates installed. This is copy&paste from stackoverflow, which says on https://stackoverflow.com/questions/62688256/sqlalchemy-exc-nosuchmoduleerror-cant-load-plugin-sqlalchemy-dialectspostgre The URI should start with postgresql:// instead of postgres://. SQLAlchemy used to accept both, but has removed support for the postgres name. --- diff --git a/salt/profile/mailman3/files/mailman.cfg b/salt/profile/mailman3/files/mailman.cfg index 1fb7fa7..3282887 100644 --- a/salt/profile/mailman3/files/mailman.cfg +++ b/salt/profile/mailman3/files/mailman.cfg @@ -44,7 +44,7 @@ enable: yes [database] class: mailman.database.postgresql.PostgreSQLDatabase -url: postgres://{{ pillar['profile']['mailman3']['database_user'] }}:{{ pillar['postgres']['users']['mailman3']['password'] }}@{{ pillar['profile']['mailman3']['database_host'] }}/mailman +url: postgresql://{{ pillar['profile']['mailman3']['database_user'] }}:{{ pillar['postgres']['users']['mailman3']['password'] }}@{{ pillar['profile']['mailman3']['database_host'] }}/mailman [antispam] # This section defines basic antispam detection settings.