24 lines
340 B
Plaintext
24 lines
340 B
Plaintext
{%
|
|
set has_promexporter = salt['pillar.get'](
|
|
'prometheus:wanted',
|
|
default={}
|
|
)
|
|
%}
|
|
|
|
{%
|
|
set has_fan = salt['pillar.get'](
|
|
'hardware:raspberrypi:fan:has_fan',
|
|
default=False
|
|
)
|
|
%}
|
|
|
|
include:
|
|
- .repo
|
|
- .wifi
|
|
{%- if 'node_exporter' in has_promexporter %}
|
|
- .prometheus-exporter
|
|
{%- endif %}
|
|
{%- if has_fan %}
|
|
- .fan
|
|
{%- endif %}
|