Send updated grains to Salt mine

Change-Id: I8e90dd0e7c2eabe79046bad0e86a4c020a991fc7
This commit is contained in:
Bartosz Kupidura 2017-04-24 11:51:13 +02:00
parent 9f4d99cb3a
commit 1cb5cbdba4

View file

@ -27,3 +27,15 @@ prometheus_grain:
service_grains: {{ service_grains|yaml }} service_grains: {{ service_grains|yaml }}
- require: - require:
- file: prometheus_grains_dir - file: prometheus_grains_dir
prometheus_grains_file:
cmd.wait:
- name: cat /etc/salt/grains.d/* > /etc/salt/grains
- watch:
- file: prometheus_grain
prometheus_grains_publish:
module.run:
- name: mine.update
- watch:
- cmd: prometheus_grains_file