Set the address when in solrcloud mode.

This commit is contained in:
Andrea Dell'Amico 2022-08-12 12:29:35 +02:00
parent 152d09b520
commit 65b497a8a8
Signed by: adellam
GPG Key ID: 147ABE6CEB9E20FF
2 changed files with 4 additions and 1 deletions

View File

@ -31,6 +31,7 @@ solr_heap: 1024M
# core, solrcloud.
# Use 'core' when running standalone.
solr_mode: core
solr_host_address: '{{ ansible_default_ipv4.address }}'
solr_download_dir: '{{ solr_base_dir }}/download'
solr_zookeeper_data_dir: '{{ solr_data_dir }}/zoo_data'
solr_install_collection1: False

View File

@ -61,9 +61,11 @@ ZK_HOST="{{ solr_zk_hosts }}"
# Set the ZooKeeper client timeout (for SolrCloud mode)
ZK_CLIENT_TIMEOUT="{{ solr_zk_timeout }}"
{% if solr_mode == solrcloud %}
# By default the start script uses "localhost"; override the hostname here
# for production SolrCloud environments to control the hostname exposed to cluster state
#SOLR_HOST="192.168.1.1"
SOLR_HOST="{{ solr_host_address }}"
{% endif %}
# By default the start script uses UTC; override the timezone if needed
#SOLR_TIMEZONE="UTC"