lean_delivery.solr_master
Solr Configuration as Master
Summary
This role:
- Configures Solr on Centos 7, Ubuntu or Windows host to be master.
Requirements
- Minimal Version of the ansible for installation: 2.7
- Java 8
- Solr installed
- Supported OS:
- CentOS
- 7
- Ubuntu
- Windows
- "Windows Server 2008"
- "Windows Server 2008 R2"
- "Windows Server 2012"
- "Windows Server 2012 R2"
- "Windows Server 2016"
- "Windows 7"
- "Windows 8.1"
- "Windows 10"
- CentOS
Role Variables
solr_version- matches available version on https://archive.apache.org/dist/lucene/solr/. Tested versions 5.3-8.xdefault:
8.0.0solr_dest_main_path- root directory to store solr folderdefault:
/optfor Linuxdefault:
C:\Solrfor Windowssolr_dest_path- solr folder pathdefault:
{{ dest_main_path }}/solr-{{ solr_version }}solr_configset_path- solr configset folder pathdefault:
{{ solr_home }}/configsetsfor Linuxdefault:
{{ solr_dest_path }}\server\solr\configsetsfor Windowssolr_service_name- solr service namedefault:
solrsolr_with_systemd- to run solr as a servicedefault:
Trueconfigset_list- list of configset directoriesdefault:
- defaultauto_populate_configset_list- get all configset directories automaticallydefault:
Truesolr_base_path- path to solr basedefault:
/var/solrsolr_home- path to SOLR_HOMEdefault:
{{ solr_base_path }}/data
Example Inventory
[solr-master]
solr.example.com
[solrwin-master]
solrwin.example.com
[solrwin-master:vars]
ansible_user=admin
ansible_password=password
ansible_connection=winrm
ansible_winrm_server_cert_validation=ignore
Example Playbook
- name: Configure Solr as master
hosts: solr-master
roles:
- role: lean_delivery.java
- role: lean_delivery.solr_standalone
- role: lean_delivery.solr_master
License
Apache
Author Information
authors:
- Lean Delivery Team team@lean-delivery.com
ansible-galaxy install lean_delivery.solr_master