From 9816da4f8537020c7cb670f45955bd2c358db462 Mon Sep 17 00:00:00 2001 From: Franziska Kunsmann Date: Thu, 1 Jul 2021 18:22:38 +0200 Subject: [PATCH] bundles/postgresql: only install postgresql-server-dev-* if needed --- bundles/postgresql/items.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bundles/postgresql/items.py b/bundles/postgresql/items.py index 27ed1c3..32ec15b 100644 --- a/bundles/postgresql/items.py +++ b/bundles/postgresql/items.py @@ -5,9 +5,11 @@ pkg_apt = { 'postgresql-client-common': {}, 'postgresql-{}'.format(postgresql_version): {}, 'postgresql-client-{}'.format(postgresql_version): {}, - 'postgresql-server-dev-{}'.format(postgresql_version): {}, } +if node.metadata.get('postgresql/install_dev', False): + pkg_apt['postgresql-server-dev-{}'.format(postgresql_version)] = {} + if node.has_bundle('zfs'): for pkgname, pkgconfig in pkg_apt.items(): pkg_apt[pkgname]['needs'] = {