From 8c0259c593bc0607f523a97b2c45d857f1e0fc69 Mon Sep 17 00:00:00 2001 From: David Seira Date: Thu, 31 Aug 2017 13:22:55 +0200 Subject: [PATCH] Replace source for source_path variable name in nginx.conf file --- nginx/ng/config.sls | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/ng/config.sls b/nginx/ng/config.sls index c27ac69..c7f1c40 100644 --- a/nginx/ng/config.sls +++ b/nginx/ng/config.sls @@ -12,7 +12,7 @@ nginx_log_dir: - group: {{ nginx.server.config.user }} {% endif %} -{% if 'source' in nginx.server.config %} +{% if 'source_path' in nginx.server.config %} {% set source_path = nginx.server.config.source %} {% else %} {% set source_path = 'salt://nginx/ng/files/nginx.conf' %} @@ -23,7 +23,7 @@ nginx_config: - name: {{ nginx.lookup.conf_file }} - source: {{ source_path }} - template: jinja -{% if 'source' not in nginx.server.config %} +{% if 'source_path' not in nginx.server.config %} - context: config: {{ nginx.server.config|json() }} {% endif %}