Send updated grains to Salt mine
Change-Id: I8e90dd0e7c2eabe79046bad0e86a4c020a991fc7
This commit is contained in:
parent
9f4d99cb3a
commit
1cb5cbdba4
1 changed files with 12 additions and 0 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue