bundles/nginx: use metadata reactor to determine index files

This commit is contained in:
Franzi 2020-10-31 10:41:33 +01:00
parent 3ee570a47a
commit e2d8923dee
Signed by: kunsi
GPG key ID: 12E3D2136B818350
4 changed files with 30 additions and 6 deletions

View file

@ -58,7 +58,10 @@ for vhost, config in node.metadata.get('nginx', {}).get('vhosts', {}).items():
files['/etc/nginx/sites/{}'.format(vhost)] = {
'source': 'site_template',
'content_type': 'mako',
'context': config,
'context': {
'vhost': vhost,
**config,
},
'needs': set(),
'triggers': {
'svc_systemd:nginx:restart',