diff --git a/defaults/main.yml b/defaults/main.yml index f8bdcfb..3b544af 100644 --- a/defaults/main.yml +++ b/defaults/main.yml @@ -19,6 +19,7 @@ solr_jmx_port_1: 8601 solr_jmx_enabled: 'false' solr_user: solr solr_group: solr +solr_jetty_host: "127.0.0.1" # We need to define this one because we are using the tomcat multiple instances role solr_base_dir: /opt solr_server_dir: '{{ solr_base_dir }}/solr' diff --git a/templates/solr-default.j2 b/templates/solr-default.j2 index cea63f0..7444306 100644 --- a/templates/solr-default.j2 +++ b/templates/solr-default.j2 @@ -29,6 +29,9 @@ SOLR_INSTALL_DIR="{{ solr_data_dir }}" # Increase Java Heap as needed to support your indexing / query needs SOLR_HEAP="{{ solr_heap }}" +# Listen address. Defaults to localhost +SOLR_JETTY_HOST="{{ solr_jetty_host }}" + # Expert: If you want finer control over memory options, specify them directly # Comment out SOLR_HEAP if you are using this though, that takes precedence #SOLR_JAVA_MEM="-Xms512m -Xmx512m"