From d7b99feb0aaad6b9fe5c53ca8668684c9d736b10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Romain=20Tarti=C3=A8re?= Date: Thu, 20 Jun 2024 10:03:05 -1000 Subject: [PATCH] Fix deployment with PostgreSQL 15 We previously did not change the database owner for PostgreSQL, resulting in the database being owned by the `postgres` user. PostgreSQL 15 revoked the CREATE permission from all users except a database owner from the public schema. As a consequence, migration that are expected to create objects are not allowed to do so with this version and newer of PostgreSQL. Explicitly make the database user the owner of it, to allow migrations. --- manifests/back/database.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/back/database.pp b/manifests/back/database.pp index b763760..2c221ba 100644 --- a/manifests/back/database.pp +++ b/manifests/back/database.pp @@ -8,6 +8,7 @@ postgresql::server::db { $taiga::back::db_name: user => $taiga::back::db_user, + owner => $taiga::back::db_user, password => postgresql::postgresql_password($taiga::back::db_user, $taiga::back::db_password), } }