proper naming and actually using the state
This commit is contained in:
@@ -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 %}
|
||||
|
||||
Reference in New Issue
Block a user