Puppet module for installing solr with a stand alone jetty server. The server will default to port 8983 and store it's data in /var/lib/solr. Configuration files can be found at /etc/solr.
This install has been tested on:
To download a copy of solr into /opt/solr and start a dedicated jetty server for solr.
package { 'default-jdk':
ensure => 'installed',
before => Class['Solr']
}
include solr
You can also install a tomcat server to host solr. If so you don't need to include, just add the module to your modules path and include this in your manifest. This example sets up a tomcat server and provides a zookeeper host to connect in order to run solrCloud.
package { 'default-jdk': }
class { "solr::tomcat6":
zookeeper_hosts => "ec2-72-44-55-216.compute-1.amazonaws.com:2181/cld2",
}
For more tomcat configuration options see the tomcat6.pp file in manifests.
Either solr::jetty or solr:tomcat6 can be used to host solrCloud.
package { 'default-jdk' }
class {'solr::jetty':
zookeeper_hosts => ["example.com:2181", "anotherserver.org:2181/alternate_root"]
}