Created
September 8, 2016 13:09
-
-
Save silenius/5d38fde631bcf5976cef51fb2db239fe 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
wait_shared_dir_created: | |
salt.wait_for_event: | |
- name: webapps/harmonia/shared_dir | |
- id_list: | |
- www2.prod.lan | |
- timeout: 30 | |
- require: | |
- event: webapps/harmonia/shared_dir | |
webapps/harmonia/shared_dir: | |
event.send: | |
- data: | |
dir: /data/webapps/harmonia | |
{% for d in 'TESTfull', 'TESTthumbs' %} | |
harmonia_{{ d }}_symlink: | |
file.symlink: | |
- name: {{ cfg.repo.clone_dir }}/ias/public/pics/species/{{ d }} | |
- target: /filer/webapps/harmonia | |
- require: | |
- salt: wait_shared_dir_created | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment