bundles/postgresql: remove version-specific options

This commit is contained in:
Franzi 2023-07-14 06:33:59 +02:00
parent 9aacb8f506
commit 272a11f7d3
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 2 additions and 7 deletions

View file

@ -27,7 +27,5 @@ log_min_duration_statement = -1
% endif
effective_io_concurrency = ${effective_io_concurrency}
max_worker_processes = ${max_worker_processes}
% if version >= 10:
max_parallel_workers = ${max_parallel_workers}
% endif
max_parallel_workers_per_gather = ${max_parallel_workers_per_gather}

View file

@ -1,4 +1,4 @@
postgresql_version = node.metadata['postgresql']['version']
postgresql_version = int(node.metadata.get('postgresql/version'))
pkg_apt = {
'postgresql-common': {},
@ -44,10 +44,7 @@ files = {
},
"/etc/postgresql/{}/main/postgresql.conf".format(postgresql_version): {
'content_type': 'mako',
'context': {
'version': postgresql_version,
**node.metadata['postgresql'],
},
'context': node.metadata.get('postgresql'),
'owner': 'postgres',
'group': 'postgres',
'needs': {