Skip to content

Instantly share code, notes, and snippets.

/-

Created March 29, 2016 07:59
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/97e39e412eba4fdc1a15 to your computer and use it in GitHub Desktop.
Save anonymous/97e39e412eba4fdc1a15 to your computer and use it in GitHub Desktop.
/tmp/salt-dirtest:
file.directory:
- user: root
- group: root
- dir_mode: 740
- clean: True
/tmp/salt-dirtest/file1.txt:
file.managed:
- user: root
- group: root
- mode: 640
- contents: "File1\n"
- require_in:
- file: /tmp/salt-dirtest
/tmp/salt-dirtest/file2.txt:
file.managed:
- user: root
- group: root
- mode: 640
- contents: "File2\n"
- require_in:
- file: /tmp/salt-dirtest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment