Skip to content

Instantly share code, notes, and snippets.

Created August 30, 2013 13:58
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 anonymous/6390141 to your computer and use it in GitHub Desktop.
Save anonymous/6390141 to your computer and use it in GitHub Desktop.
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
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