瀏覽代碼

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

susefix
Chad Heuschober 10 年之前
父節點
當前提交
88c39caa52
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. +1
    -1
      nginx/ng/config.sls
  2. +1
    -1
      nginx/ng/vhosts_config.sls

+ 1
- 1
nginx/ng/config.sls 查看文件

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

+ 1
- 1
nginx/ng/vhosts_config.sls 查看文件

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


Loading…
取消
儲存