bundles/nginx: use metadata reactor to determine index files
This commit is contained in:
parent
3ee570a47a
commit
e2d8923dee
4 changed files with 30 additions and 6 deletions
|
@ -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',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue