From 61a65708d43beeae15538535972490a8e6000599 Mon Sep 17 00:00:00 2001 From: Zach Huntington-Meath Date: Tue, 14 Jul 2026 22:42:58 -0400 Subject: [PATCH] Set database owner to fix PG 15+ schema permissions PostgreSQL 15+ revokes CREATE on the public schema from all users except the database owner. Without setting owner, the database is owned by postgres and the pulp user cannot create tables, causing pulpcore-manager migrate to fail with "permission denied for schema public". Co-Authored-By: Claude Opus 4.6 --- manifests/database.pp | 1 + 1 file changed, 1 insertion(+) diff --git a/manifests/database.pp b/manifests/database.pp index 873b28f..7961e84 100644 --- a/manifests/database.pp +++ b/manifests/database.pp @@ -14,6 +14,7 @@ password => postgresql::postgresql_password($pulpcore::postgresql_db_user, $pulpcore::postgresql_db_password), encoding => 'utf8', locale => 'en_US.utf8', + owner => $pulpcore::postgresql_db_user, before => Pulpcore::Admin['migrate --noinput'], require => Package['glibc-langpack-en'], }