Merge pull request #275 from anderbubble/issues/274
Ignore missing servers or snippets when removing from map
This commit is contained in:
commit
c55120acf2
@ -30,6 +30,7 @@ generate_nginx_dhparam_{{ dh_param }}_key:
|
|||||||
- creates: {{ certificates_path }}/{{ dh_param }}
|
- creates: {{ certificates_path }}/{{ dh_param }}
|
||||||
- require:
|
- require:
|
||||||
- file: prepare_certificates_path_dir
|
- file: prepare_certificates_path_dir
|
||||||
|
- pkg: generate_nginx_dhparam_{{ dh_param }}_key
|
||||||
- watch_in:
|
- watch_in:
|
||||||
- service: nginx_service
|
- service: nginx_service
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
|
@ -10,8 +10,8 @@
|
|||||||
{% set server_states = [] %}
|
{% set server_states = [] %}
|
||||||
{#- _nginx is a lightened copy of nginx map intended to passed in templates #}
|
{#- _nginx is a lightened copy of nginx map intended to passed in templates #}
|
||||||
{%- set _nginx = nginx.copy() %}
|
{%- set _nginx = nginx.copy() %}
|
||||||
{%- do _nginx.pop('snippets') %}
|
{%- do _nginx.pop('snippets') if nginx.snippets is defined %}
|
||||||
{%- do _nginx.pop('servers') %}
|
{%- do _nginx.pop('servers') if nginx.servers is defined %}
|
||||||
|
|
||||||
# Simple path concatenation.
|
# Simple path concatenation.
|
||||||
# Needs work to make this function on windows.
|
# Needs work to make this function on windows.
|
||||||
|
@ -8,8 +8,8 @@
|
|||||||
|
|
||||||
{#- _nginx is a lightened copy of nginx map intended to passed in templates #}
|
{#- _nginx is a lightened copy of nginx map intended to passed in templates #}
|
||||||
{%- set _nginx = nginx.copy() %}
|
{%- set _nginx = nginx.copy() %}
|
||||||
{%- do _nginx.pop('snippets') %}
|
{%- do _nginx.pop('snippets') if nginx.snippets is defined %}
|
||||||
{%- do _nginx.pop('servers') %}
|
{%- do _nginx.pop('servers') if nginx.servers is defined %}
|
||||||
|
|
||||||
nginx_snippets_dir:
|
nginx_snippets_dir:
|
||||||
file.directory:
|
file.directory:
|
||||||
|
Loading…
Reference in New Issue
Block a user