proper naming and actually using the state

This commit is contained in:
2020-06-07 16:02:06 +02:00
parent 049bf81a1e
commit 11ee963662

View File

@@ -1,5 +1,5 @@
{%
set has_promeexporter = salt['pillar.get'](
set has_promexporter = salt['pillar.get'](
'prometheus:service:wanted',
default=False
)
@@ -13,7 +13,7 @@ set has_fan = salt['pillar.get'](
%}
include:
{%- if has_promexporter %}
{%- if 'node_exporter' in has_promexporter %}
- .prometheus-exporter
{%- endif %}
{%- if has_fan %}