LS salt module - fix file.absent

This commit is contained in:
Mike Reeves
2018-02-13 13:23:28 -05:00
parent 78deb17406
commit 580c026f68

View File

@@ -91,11 +91,15 @@ lslogdir:
- DSTATS=0 - DSTATS=0
removefreq: removefreq:
file.absent:
- name: /opt/so/conf/logstash/pipeline/*_postprocess_freq_analysis_*.conf - name: /opt/so/conf/logstash/pipeline/*_postprocess_freq_analysis_*.conf
removedstats1: removedstats1:
file.absent:
- name: /opt/so/conf/logstash/pipeline/8007_postprocess_dns_top1m_tagging.conf - name: /opt/so/conf/logstash/pipeline/8007_postprocess_dns_top1m_tagging.conf
removedstats2: removedstats2:
file.absent:
- name: /opt/so/conf/logstash/pipeline/8008_postprocess_dns_whois_age.conf - name: /opt/so/conf/logstash/pipeline/8008_postprocess_dns_whois_age.conf
{% elif freq == '1' and dstats == '0' %} {% elif freq == '1' and dstats == '0' %}
@@ -106,8 +110,10 @@ removedstats2:
- DSTATS=0 - DSTATS=0
removedstats1: removedstats1:
file.absent:
- name: /opt/so/conf/logstash/pipeline/8007_postprocess_dns_top1m_tagging.conf - name: /opt/so/conf/logstash/pipeline/8007_postprocess_dns_top1m_tagging.conf
removedstats2: removedstats2:
file.absent:
- name: /opt/so/conf/logstash/pipeline/8008_postprocess_dns_whois_age.conf - name: /opt/so/conf/logstash/pipeline/8008_postprocess_dns_whois_age.conf
{% elif freq == '1' and dstats == '1' %} {% elif freq == '1' and dstats == '1' %}
@@ -125,6 +131,7 @@ removedstats2:
- DSTATS=1 - DSTATS=1
removefreq: removefreq:
file.absent:
- name: /opt/so/conf/logstash/pipeline/*_postprocess_freq_analysis_*.conf - name: /opt/so/conf/logstash/pipeline/*_postprocess_freq_analysis_*.conf
{% endif %} {% endif %}