bundles/postgresql: only install postgresql-server-dev-* if needed

This commit is contained in:
Franzi 2021-07-01 18:22:38 +02:00
parent 210ae8dd2e
commit 9816da4f85
Signed by: kunsi
GPG key ID: 12E3D2136B818350

View file

@ -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'] = {