Created
October 21, 2016 13:06
-
-
Save anonymous/5ddd4125106f3840c93d519a31605af9 to your computer and use it in GitHub Desktop.
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
{% set data = salt.pillar.get('data') %} | |
{% set caller = salt.pillar.get('caller') %} | |
{% for dir in data.filer_dirs %} | |
shared_folder_{{ dir }}: | |
salt.state: | |
- tgt: filer1.prod.lan | |
- sls: filer.create_shared_dir | |
- pillar: | |
dir: {{ dir }} | |
user: {{ data.user }} | |
group: {{ data.group }} | |
{% endfor %} | |
{% for src, path in data.symlink.items() %} | |
create_symlinks_{{ src }}: | |
salt.function: | |
- name: file.symlink | |
- tgt: {{ caller }} | |
- arg: | |
- {{ src }} | |
- {{ path }} | |
- require: | |
{% for dir in data.filer_dirs %} | |
- salt: shared_folder_{{ dir }} | |
{% endfor %} | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment