Last active
August 29, 2015 14:02
-
-
Save dnd/72f2da2354d8abe39636 to your computer and use it in GitHub Desktop.
SaltStack YAML block reuse
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#salt requires a proper dictionary with declared state, so the file.missing is just a dummy | |
appUserGroup: | |
file.missing: | |
- name: /tmp/aroisntoaursntoyaurnsotnarstnarosetairestoiaernst | |
- &usergroup | |
- user: {{user}} | |
- group: {{group}} | |
- hashvalues: &hashvals | |
some: value | |
another: one | |
/tmp/managed: | |
file.managed: | |
- content: whatever | |
- <<: *usergroup #nested at same level to appear | |
- env: | |
<<: *hashvals #requires double indent |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment