-
-
Save dlanderson/bc055629f58ada98c24b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(salt-dev)root@salt:/srv/salt/development# cat dev_states.sls | |
include: | |
- sub1 | |
- sub2 | |
(salt-dev)root@salt:/srv/salt/development# cat sub1.sls | |
echo sub1: | |
cmd.run: | |
- require: | |
- cmd: echo sub2 | |
(salt-dev)root@salt:/srv/salt/development# cat sub2.sls | |
echo sub2: | |
cmd.run | |
[root@rhel5 /]# salt-call state.sls dev_states env=development | |
local: | |
---------- | |
State: - cmd | |
Name: echo sub2 | |
Function: run | |
Result: True | |
Comment: Command "echo sub2" run | |
Changes: pid: 4990 | |
retcode: 0 | |
stderr: | |
stdout: sub2 | |
---------- | |
State: - cmd | |
Name: echo sub1 | |
Function: run | |
Result: True | |
Comment: Command "echo sub1" run | |
Changes: pid: 4991 | |
retcode: 0 | |
stderr: | |
stdout: sub1 | |
Summary | |
------------ | |
Succeeded: 2 | |
Failed: 0 | |
------------ | |
Total: 2 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment