Set the address when in solrcloud mode.
This commit is contained in:
parent
152d09b520
commit
65b497a8a8
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue