From d3c9550463f3c1c71a56a813c051045b19023591 Mon Sep 17 00:00:00 2001 From: Sophie Schiller Date: Fri, 14 May 2021 20:06:42 +0200 Subject: [PATCH] bundle/postgresql add dependencies, remove redundant config --- bundles/postgresql/items.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/bundles/postgresql/items.py b/bundles/postgresql/items.py index 48b67b4..6c475b7 100644 --- a/bundles/postgresql/items.py +++ b/bundles/postgresql/items.py @@ -29,6 +29,7 @@ directories = { 'owner': 'postgres', 'group': 'postgres', 'mode': '0755', + 'needs': {f'pkg_apt:{i}' for i in pkg_apt.keys()}, }, } @@ -105,10 +106,4 @@ for user, config in node.metadata.get('postgresql/roles', {}).items(): } for database, config in node.metadata.get('postgresql/databases', {}).items(): - postgres_dbs[database] = { - 'owner': config['owner'], - 'needs': { - 'postgres_role:', - 'svc_systemd:postgresql', - }, - } + postgres_dbs[database] = config