Skip to content

Instantly share code, notes, and snippets.

Created August 19, 2015 17:05
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/bcd3425a5c0353aad61c to your computer and use it in GitHub Desktop.
Save anonymous/bcd3425a5c0353aad61c to your computer and use it in GitHub Desktop.
whatever_id:
file.exists:
- name: /tmp/foo
vs.
{% if salt['file.file_exists']('/tmp/foo') %} # Why not file.exists like above???
whatevs:
file.replace:
- name: /tmp/foo
- pattern: ' rhgb'
- repl: ''
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment