From 6b720c6c75f9212be12135c8ccffbbe09d99b0fd Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Sat, 23 Jan 2021 12:06:38 +0100 Subject: [PATCH] bundles/postgresql: only deploy packages if we have locales installed --- bundles/postgresql/items.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bundles/postgresql/items.py b/bundles/postgresql/items.py index f36e4bd..becbcb1 100644 --- a/bundles/postgresql/items.py +++ b/bundles/postgresql/items.py @@ -46,6 +46,10 @@ files = { 'context': node.metadata['postgresql'], 'owner': 'postgres', 'group': 'postgres', + 'needs': { + # postgresql won't start if the configured locale isn't available + 'action:locale-gen', + } if node.has_bundle('basic') else set(), 'triggers': { 'svc_systemd:postgresql:restart', },