Parcourir la source

Merge pull request #275 from anderbubble/issues/274

Ignore missing servers or snippets when removing from map
tags/v2.7.2
Javier Bértoli il y a 3 ans
Parent
révision
c55120acf2
Aucun compte lié à l'adresse e-mail de l'auteur
3 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. +1
    -0
      nginx/certificates.sls
  2. +2
    -2
      nginx/servers_config.sls
  3. +2
    -2
      nginx/snippets.sls

+ 1
- 0
nginx/certificates.sls Voir le fichier

@@ -30,6 +30,7 @@ generate_nginx_dhparam_{{ dh_param }}_key:
- creates: {{ certificates_path }}/{{ dh_param }}
- require:
- file: prepare_certificates_path_dir
- pkg: generate_nginx_dhparam_{{ dh_param }}_key
- watch_in:
- service: nginx_service
{%- endif %}

+ 2
- 2
nginx/servers_config.sls Voir le fichier

@@ -10,8 +10,8 @@
{% set server_states = [] %}
{#- _nginx is a lightened copy of nginx map intended to passed in templates #}
{%- set _nginx = nginx.copy() %}
{%- do _nginx.pop('snippets') %}
{%- do _nginx.pop('servers') %}
{%- do _nginx.pop('snippets') if nginx.snippets is defined %}
{%- do _nginx.pop('servers') if nginx.servers is defined %}

# Simple path concatenation.
# Needs work to make this function on windows.

+ 2
- 2
nginx/snippets.sls Voir le fichier

@@ -8,8 +8,8 @@

{#- _nginx is a lightened copy of nginx map intended to passed in templates #}
{%- set _nginx = nginx.copy() %}
{%- do _nginx.pop('snippets') %}
{%- do _nginx.pop('servers') %}
{%- do _nginx.pop('snippets') if nginx.snippets is defined %}
{%- do _nginx.pop('servers') if nginx.servers is defined %}

nginx_snippets_dir:
file.directory:

Chargement…
Annuler
Enregistrer