Adjusts the parameters passed to context to be passed as json and hopefully avoid double quoting. Also brings indentation in-line with salt doc 23.14.1.2.1

This commit is contained in:
Chad Heuschober 2014-05-21 15:13:13 -04:00
parent 9f8dc59973
commit 88c39caa52
2 changed files with 2 additions and 2 deletions

View File

@ -11,4 +11,4 @@ nginx_config:
- source: salt://nginx/ng/files/nginx.conf - source: salt://nginx/ng/files/nginx.conf
- template: jinja - template: jinja
- context: - context:
config: {{ nginx.server.config }} config: {{ nginx.server.config|json() }}

View File

@ -93,7 +93,7 @@ nginx_vhost_available_dir:
- source: salt://nginx/ng/files/vhost.conf - source: salt://nginx/ng/files/vhost.conf
- template: jinja - template: jinja
- context: - context:
config: {{ settings.config }} config: {{ settings.config|json() }}
{% do vhost_states.append(conf_state_id) %} {% do vhost_states.append(conf_state_id) %}
{% endif %} {% endif %}