bundles/postgresql: only install postgresql-server-dev-* if needed
This commit is contained in:
parent
210ae8dd2e
commit
9816da4f85
1 changed files with 3 additions and 1 deletions
|
@ -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'] = {
|
||||
|
|
Loading…
Reference in a new issue