Skip to content

Instantly share code, notes, and snippets.

@brianthelion
Last active July 6, 2017 13:52
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 brianthelion/8d32238230d98d612535a10e551b313d to your computer and use it in GitHub Desktop.
Save brianthelion/8d32238230d98d612535a10e551b313d to your computer and use it in GitHub Desktop.
Import/include idempotency in Saltstack
{% set tmpdir = salt.temp.dir() %}
state_a:
file.directory:
- name: {{ tmpdir }}
{% from "A.sls" import tmpdir %}
include:
- A
state_b:
file.touch:
- require:
- state_a
- name: {{ tmpdir }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment