fix if logic

This commit is contained in:
Mike Reeves
2020-08-19 13:04:10 -04:00
committed by GitHub
parent 3d48c1f99b
commit bf84822d36

View File

@@ -518,6 +518,7 @@ fleetkeyperms:
{% if salt['file.file_exists']('/etc/pki/elasticsearch.key') -%} {% if salt['file.file_exists']('/etc/pki/elasticsearch.key') -%}
- prereq: - prereq:
- x509: /etc/pki/elasticsearch.crt - x509: /etc/pki/elasticsearch.crt
{%- endif %}
/etc/pki/elasticsearch.crt: /etc/pki/elasticsearch.crt:
x509.certificate_managed: x509.certificate_managed:
@@ -550,6 +551,4 @@ elastickeyperms:
- name: /etc/pki/elasticsearch.key - name: /etc/pki/elasticsearch.key
- mode: 640 - mode: 640
- group: 930 - group: 930
{%- endif %}
{%- endif %} {%- endif %}