Compare commits
No commits in common. "f22a5f185ea17f7556a0dfd1e5f41bcf3a046ba3" and "8c1985c5e72c4f1e72c175a4b2fb7e75dd1200be" have entirely different histories.
f22a5f185e
...
8c1985c5e7
@ -2,7 +2,7 @@ include:
|
|||||||
- firewalld
|
- firewalld
|
||||||
- profile.seccheck
|
- profile.seccheck
|
||||||
- profile.zypp
|
- profile.zypp
|
||||||
- profile.prometheus.node_exporter
|
- profile.node_exporter
|
||||||
- users
|
- users
|
||||||
- .ssh
|
- .ssh
|
||||||
- postfix.config
|
- postfix.config
|
||||||
|
@ -1,18 +0,0 @@
|
|||||||
{%- set mypillar = salt['pillar.get']('profile:prometheus:targets') %}
|
|
||||||
{%- set targetsdir = '/etc/prometheus/targets' %}
|
|
||||||
|
|
||||||
{%- if mypillar | length %}
|
|
||||||
{{ targetsdir }}:
|
|
||||||
file.directory:
|
|
||||||
- group: prometheus
|
|
||||||
|
|
||||||
{%- for group, nodes in mypillar.items() %}
|
|
||||||
{{ targetsdir }}/{{ group }}.json:
|
|
||||||
file.serialize:
|
|
||||||
- dataset: {{ nodes }}
|
|
||||||
- serializer: json
|
|
||||||
{%- endfor %}
|
|
||||||
|
|
||||||
{%- else %}
|
|
||||||
{%- do salt.log.debug('profile.prometheus: no targets defined') %}
|
|
||||||
{%- endif %}
|
|
@ -1,2 +1,2 @@
|
|||||||
include:
|
include:
|
||||||
- prometheus.config
|
- .prometheus
|
||||||
|
@ -1,2 +1,2 @@
|
|||||||
include:
|
include:
|
||||||
- prometheus.config
|
- .prometheus
|
||||||
|
@ -1,3 +1,2 @@
|
|||||||
include:
|
include:
|
||||||
- prometheus.config
|
- prometheus.config
|
||||||
- profile.prometheus.targets
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user