Created
September 8, 2016 12:55
-
-
Save silenius/0b4ad163417d96197b5227db950fe248 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
{% if cfg.deploy.env == 'production' %} | |
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 %} | |
wait_shared_dir_created: | |
salt.wait_for_event: | |
- name: webapps/harmonia/shared_dir | |
- id_list: | |
- www2.prod.lan | |
- timeout: 10 | |
{% endif %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment