diff --git a/nginx/servers_config.sls b/nginx/servers_config.sls index 66dd7d7c..26199af7 100644 --- a/nginx/servers_config.sls +++ b/nginx/servers_config.sls @@ -126,6 +126,7 @@ nginx_server_available_dir: {% if 'source_path' not in settings.config %} - context: config: {{ settings.config|json(sort_keys=False) }} + nginx: {{ nginx|json() }} {% endif %} {% if 'overwrite' in settings and settings.overwrite == False %} - unless: diff --git a/nginx/snippets.sls b/nginx/snippets.sls index bd881a93..797dc73a 100644 --- a/nginx/snippets.sls +++ b/nginx/snippets.sls @@ -22,4 +22,5 @@ nginx_snippet_{{ snippet }}: - template: jinja - context: config: {{ config|json() }} + nginx: {{ nginx|json() }} {% endfor %}