Przeglądaj źródła

Merge pull request #19 from spsoit/master

Tightened up some ng requisites.
susefix
Seth House 10 lat temu
rodzic
commit
8026013ae1
2 zmienionych plików z 12 dodań i 3 usunięć
  1. +2
    -0
      nginx/ng/init.sls
  2. +10
    -3
      nginx/ng/vhosts.sls

+ 2
- 0
nginx/ng/init.sls Wyświetl plik

@@ -12,3 +12,5 @@ extend:
service:
- watch:
- file: nginx_config
- require:
- file: nginx_config

+ 10
- 3
nginx/ng/vhosts.sls Wyświetl plik

@@ -6,6 +6,12 @@
{% from 'nginx/ng/vhosts_config.sls' import vhost_states with context %}
{% from 'nginx/ng/service.sls' import service_function with context %}

{% macro file_requisites(states) %}
{%- for state in states %}
- file: {{ state }}
{%- endfor -%}
{% endmacro %}

include:
- nginx.ng.service
- nginx.ng.vhosts_config
@@ -18,7 +24,8 @@ nginx_service_reload:
- use:
- service: nginx_service
- watch:
{%- for vhost in vhost_states %}
- file: {{ vhost }}
{% endfor -%}
{{ file_requisites(vhost_states) }}
- require:
{{ file_requisites(vhost_states) }}
- service: nginx_service
{% endif %}

Ładowanie…
Anuluj
Zapisz