bundles/postgresql: add metadata keys for some performance related config options

This commit is contained in:
Franzi 2021-04-23 14:02:04 +02:00
parent 616feb54b2
commit 8b14575657
Signed by: kunsi
GPG key ID: 12E3D2136B818350
3 changed files with 34 additions and 5 deletions

View file

@ -43,7 +43,10 @@ files = {
},
"/etc/postgresql/{}/main/postgresql.conf".format(postgresql_version): {
'content_type': 'mako',
'context': node.metadata['postgresql'],
'context': {
'version_list': [int(i) for i in node.metadata['postgresql']['version'].split('.')],
**node.metadata['postgresql'],
},
'owner': 'postgres',
'group': 'postgres',
'needs': {