Created
May 31, 2016 14:41
-
-
Save silenius/cb0e27b22aa108dae8ea38ddb2500c2b 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
jcigar@dev:/usr/local/etc/salt/states/ > cat solr/init.sls | |
solr_home: | |
file.directory: | |
- name: /usr/local/solr | |
- user: root | |
- group: wheel | |
- mode: 755 | |
{% for instance, data in salt.pillar.get('solr:instances').items() %} | |
{{ instance }}_solr_archive: | |
archive.extracted: | |
- name: /usr/local/solr/{{ instance }}/ | |
- source: "http://apache.belnet.be/lucene/solr/{{ data.version }}/solr-{{ data.version }}.tgz" | |
- source_hash: md5=fc9a4a6ee127dff21135dd4941c92c15 | |
- archive_format: tar | |
- require: | |
- file: solr_home | |
{% endfor %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment