Skip to content

Instantly share code, notes, and snippets.

@basepi
Created February 9, 2016 18:27
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 basepi/db0d2a08f1cf1fcbcd5b to your computer and use it in GitHub Desktop.
Save basepi/db0d2a08f1cf1fcbcd5b to your computer and use it in GitHub Desktop.
file.managed with two appends
append my two files:
file.managed:
- name: /tmp/myfile.txt
- source: salt://template.txt
- template: jinja
some static content that won't change
here is some more content
{{ pillar.get('first_piece') }}
{{ pillar.get('second_piece') }}
you can even place content after with this example
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment