Ensure that pillar.get on nginx🆖dhparam has a sane

default value if dhparam isn't defined in the pillar.
This commit is contained in:
Matt M 2017-12-20 22:31:49 -05:00
parent 1db6ddeb66
commit 19d0102c2e

View File

@ -5,7 +5,7 @@ include:
{% set certificates_path = salt['pillar.get']('nginx:ng:certificates_path', '/etc/nginx/ssl') %} {% set certificates_path = salt['pillar.get']('nginx:ng:certificates_path', '/etc/nginx/ssl') %}
{%- for dh_param, value in salt.pillar.get('nginx:ng:dh_param').items() %} {%- for dh_param, value in salt['pillar.get']('nginx:ng:dh_param', {}).items() %}
{%- if value is string %} {%- if value is string %}
create_nginx_dhparam_{{ dh_param }}_key: create_nginx_dhparam_{{ dh_param }}_key:
file.managed: file.managed: