bundles/nginx: add deployment of vhost configs
This commit is contained in:
parent
dc9e8dc679
commit
c4330f866b
3 changed files with 54 additions and 0 deletions
|
@ -24,3 +24,16 @@ def defaults(metadata):
|
|||
'worker_connections': 1000,
|
||||
},
|
||||
}, DEFAULTS, DONE
|
||||
|
||||
|
||||
@metadata_processor
|
||||
def letsencrypt(metadata):
|
||||
if not node.has_bundle('letsencrypt'):
|
||||
return metadata, DONE
|
||||
|
||||
le = metadata.setdefault('letsencrypt', {}).setdefault('domains', {})
|
||||
|
||||
for domain in metadata.get('nginx', {}).get('vhosts', {}).keys():
|
||||
le[domain] = set()
|
||||
|
||||
return metadata, RUN_ME_AGAIN
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue