summaryrefslogtreecommitdiffstats
path: root/salt/profile
diff options
context:
space:
mode:
Diffstat (limited to 'salt/profile')
-rw-r--r--salt/profile/salt/grains.sls11
-rw-r--r--salt/profile/salt/minion.sls3
2 files changed, 7 insertions, 7 deletions
diff --git a/salt/profile/salt/grains.sls b/salt/profile/salt/grains.sls
index 1926250..632a8bc 100644
--- a/salt/profile/salt/grains.sls
+++ b/salt/profile/salt/grains.sls
@@ -6,10 +6,7 @@ salt_grains_file:
- names:
- /etc/salt/grains:
- source: salt:///{{ slspath }}/files/etc/salt/grains.j2
-
-salt_restart_minion:
- cmd.run:
- - name: 'salt-call service.restart salt-minion'
- - bg: True
- - onchanges:
- - file: salt_grains_file
+ - require_in:
+ - service: salt-minion
+ - watch_in:
+ - service: salt-minion
diff --git a/salt/profile/salt/minion.sls b/salt/profile/salt/minion.sls
new file mode 100644
index 0000000..6978eaf
--- /dev/null
+++ b/salt/profile/salt/minion.sls
@@ -0,0 +1,3 @@
+include:
+ - salt.minion
+ - .grains