Skip to content

Commit

Permalink
feat(context): pass nginx to snippets and server_config contexts
Browse files Browse the repository at this point in the history
  • Loading branch information
sticky-note committed Nov 8, 2020
1 parent 802a8b2 commit b49873f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions nginx/servers_config.sls
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions nginx/snippets.sls
Original file line number Diff line number Diff line change
Expand Up @@ -22,4 +22,5 @@ nginx_snippet_{{ snippet }}:
- template: jinja
- context:
config: {{ config|json() }}
nginx: {{ nginx|json() }}
{% endfor %}

0 comments on commit b49873f

Please sign in to comment.