Skip to content

Instantly share code, notes, and snippets.

@justlooks
Last active August 29, 2015 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save justlooks/4e8949bffeb41f7c4edd to your computer and use it in GitHub Desktop.
Save justlooks/4e8949bffeb41f7c4edd to your computer and use it in GitHub Desktop.
# salt 'CH34' state.sls testme
CH34:
----------
ID: sleep 10;mkdir /tmp/first
Function: cmd.run
Result: True
Comment: Command "sleep 10;mkdir /tmp/first" run
Changes:
----------
pid:
18044
retcode:
0
stderr:
stdout:
----------
ID: echo "second" >> /tmp/first/myop
Function: cmd.run
Result: True
Comment: Command "echo "second" >> /tmp/first/myop" run
Changes:
----------
pid:
18065
retcode:
0
stderr:
stdout:
Summary
------------
Succeeded: 2
Failed: 0
------------
Total: 2
[root@CH124 testme]# cat init.sls
include:
- testme.firstop
- testme.secondop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment