uninstall prometheus doesn't work

This commit is contained in:
do
2020-07-21 19:23:35 +02:00
parent 40c3f77e3d
commit e7764ebd13

View File

@@ -8,13 +8,11 @@ set has_promexporter = salt['pillar.get'](
# This has to be here, otherwise: # This has to be here, otherwise:
# https://stackoverflow.com/questions/59268721/saltstack-use-include-twice-in-one-sls-file # https://stackoverflow.com/questions/59268721/saltstack-use-include-twice-in-one-sls-file
# #
{%- if 'prometheus-node_exporter' in has_promexporter %}
include: include:
{%- if 'prometheus-node_exporter' in has_promexporter %}
- prometheus - prometheus
- systemd.reload - systemd.reload
{%- else %} {%- endif %}
#- prometheus.clean #Dat klappt nuesch!
{%- endif %}
{%- if 'prometheus-node_exporter' in has_promexporter %} {%- if 'prometheus-node_exporter' in has_promexporter %}
systemd-prometheus-node-exporter-service-override: systemd-prometheus-node-exporter-service-override: