bundles/postgresql: remove version-specific options
This commit is contained in:
parent
9aacb8f506
commit
272a11f7d3
2 changed files with 2 additions and 7 deletions
|
@ -27,7 +27,5 @@ log_min_duration_statement = -1
|
||||||
% endif
|
% endif
|
||||||
effective_io_concurrency = ${effective_io_concurrency}
|
effective_io_concurrency = ${effective_io_concurrency}
|
||||||
max_worker_processes = ${max_worker_processes}
|
max_worker_processes = ${max_worker_processes}
|
||||||
% if version >= 10:
|
|
||||||
max_parallel_workers = ${max_parallel_workers}
|
max_parallel_workers = ${max_parallel_workers}
|
||||||
% endif
|
|
||||||
max_parallel_workers_per_gather = ${max_parallel_workers_per_gather}
|
max_parallel_workers_per_gather = ${max_parallel_workers_per_gather}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
postgresql_version = node.metadata['postgresql']['version']
|
postgresql_version = int(node.metadata.get('postgresql/version'))
|
||||||
|
|
||||||
pkg_apt = {
|
pkg_apt = {
|
||||||
'postgresql-common': {},
|
'postgresql-common': {},
|
||||||
|
@ -44,10 +44,7 @@ files = {
|
||||||
},
|
},
|
||||||
"/etc/postgresql/{}/main/postgresql.conf".format(postgresql_version): {
|
"/etc/postgresql/{}/main/postgresql.conf".format(postgresql_version): {
|
||||||
'content_type': 'mako',
|
'content_type': 'mako',
|
||||||
'context': {
|
'context': node.metadata.get('postgresql'),
|
||||||
'version': postgresql_version,
|
|
||||||
**node.metadata['postgresql'],
|
|
||||||
},
|
|
||||||
'owner': 'postgres',
|
'owner': 'postgres',
|
||||||
'group': 'postgres',
|
'group': 'postgres',
|
||||||
'needs': {
|
'needs': {
|
||||||
|
|
Loading…
Reference in a new issue