Add all files needed to bring up VM and run agaric.com locally

This commit is contained in:
benjamin melançon 2018-08-20 10:45:20 -04:00
parent 52c8b60bac
commit 4d2bc0ee24
742 changed files with 24037 additions and 0 deletions

View file

@ -0,0 +1,30 @@
---
- name: Check current list of Solr cores.
uri:
url: http://{{ solr_connect_host }}:{{ solr_port }}/solr/admin/cores
return_content: yes
register: solr_cores_current
- name: Ensure Solr conf directories exist.
file:
path: "{{ solr_home }}/data/{{ item }}/conf"
state: directory
owner: "{{ solr_user }}"
group: "{{ solr_user }}"
recurse: yes
when: "item not in solr_cores_current.content"
with_items: "{{ solr_cores }}"
- name: Ensure core configuration directories exist.
shell: "cp -r {{ solr_install_path }}/example/files/conf/ {{ solr_home }}/data/{{ item }}/"
when: "item not in solr_cores_current.content"
with_items: "{{ solr_cores }}"
become: yes
become_user: "{{ solr_user }}"
- name: Create configured cores.
shell: "{{ solr_install_path }}/bin/solr create -c {{ item }}"
when: "item not in solr_cores_current.content"
with_items: "{{ solr_cores }}"
become: yes
become_user: "{{ solr_user }}"