Add all files needed to bring up VM and run agaric.com locally
This commit is contained in:
parent
52c8b60bac
commit
4d2bc0ee24
742 changed files with 24037 additions and 0 deletions
30
box/provisioning/roles/geerlingguy.solr/tasks/cores.yml
Normal file
30
box/provisioning/roles/geerlingguy.solr/tasks/cores.yml
Normal 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 }}"
|
Loading…
Add table
Add a link
Reference in a new issue