Browse Source

Replace source for source_path variable name in nginx.conf file

master
David Seira 7 years ago
parent
commit
8c0259c593
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      nginx/ng/config.sls

+ 2
- 2
nginx/ng/config.sls View File

- group: {{ nginx.server.config.user }} - group: {{ nginx.server.config.user }}
{% endif %} {% endif %}


{% if 'source' in nginx.server.config %}
{% if 'source_path' in nginx.server.config %}
{% set source_path = nginx.server.config.source %} {% set source_path = nginx.server.config.source %}
{% else %} {% else %}
{% set source_path = 'salt://nginx/ng/files/nginx.conf' %} {% set source_path = 'salt://nginx/ng/files/nginx.conf' %}
- name: {{ nginx.lookup.conf_file }} - name: {{ nginx.lookup.conf_file }}
- source: {{ source_path }} - source: {{ source_path }}
- template: jinja - template: jinja
{% if 'source' not in nginx.server.config %}
{% if 'source_path' not in nginx.server.config %}
- context: - context:
config: {{ nginx.server.config|json() }} config: {{ nginx.server.config|json() }}
{% endif %} {% endif %}

Loading…
Cancel
Save