Created
August 30, 2013 13:58
-
-
Save anonymous/6390141 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
root@saltmaster:/srv/salt# cat test.sls | |
create /tmp/foo: | |
file.managed: | |
- name: /tmp/foo | |
- contents: some text | |
date: | |
cmd.run: | |
- name: date >> /tmp/foo | |
- require: | |
- file: create /tmp/foo | |
append /tmp/foo: | |
file.append: | |
- name: /tmp/foo | |
- text: appended | |
- require: | |
- cmd: date |
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
root@ceph-storage1:~# cat /tmp/foo | |
some textFri Aug 30 13:57:55 UTC 2013 | |
appended |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment