Installs and configures apache solr and runs the embedded jetty service. http://lucene.apache.org/solr/
- 5.3.x and up - use solr puppet module 0.5.x
- 5.0.x to 5.2.x - use solr puppet module 0.4.x
- 4.x.x - use solr puppet module 0.2.2
Supports systemd
This module utilizes the params concept so all default parameters are configured through solr::params.
The solr puppet module no longer manages java. However, java is a requirement for installation.
solr::params class is used for default configuration, but can be overridden with the specified parameters.
The url of the source repository for apache jetty. NOTE: If you are installing an older version you may need to specify: 'http://archive.apache.org/dist/lucene/solr/' Default: 'http://mirrors.gigenet.com/apache/lucene/solr',
The timeout used for downloading the solr package. Default: 120 seconds
The version to install. Default: '6.1.0'.
Run Solr as this user ID (default: solr) Note, creates this user if it doesn't exist.
Listen to connections from this network solr_host Use 0.0.0.0 as solr_host to accept all connections. Default: 127.0.0.1
The network port used by Jetty Default Port: 8983
The heap size used by Jetty Default size: 512m
The download directory, where solr will be downloaded to. Default: '/opt/solr_downloads'
The install directory for solr. Default: '/opt'
Sets if this module should manage the install directory.
True if this module should manage and false otherwise.
Default: false
The data directory for solr. Default: '/var/solr'
The directory for the solr logs. Default: "/var/log/solr"
The JAVA_HOME setting. Default: (os specific)
- Debian/Ubuntu: '/usr/lib/jvm/java-8-openjdk-amd64/jre'
- CentOS/RHEL: '/usr/lib/jvm/jre-1.8.0'
ARRAY - Bash type environment variables passed directly into the SOLR server startup environment Default: []
An array of hashes that define a core which will be created with the create_resources function. See type solr::core for details. Default: {}
For configuring ZooKeeper ensemble.
Default: '[]'
Maximum allowed log file size (in bytes) before rolling over. Suffixes "KB", "MB" and "GB" are allowed. Default: 4MB
Maximum number of log backup files to keep. Default: 9
The loglevel to set for log4j. Use the defined enum. Valid options
- 'ALL'
- 'DEBUG'
- 'ERROR'
- 'FATAL'
- 'INFO'
- 'OFF'
- 'TRACE'
- 'TRACE_INT'
- 'WARN'
Default: 'INFO'
The Solr cores' schema name. This should be set to schema.xml
if using
the classic schema.xml method. If using a managed schema, set this to
Solr's "managedSchemaResourceName" setting, typically 'manage-schema'.
Refer to Solr's documentation for core.properties
for details.
Default: varies by version: Solr >= 5.6.0 will use 'manage-schema' Solr < 5.6.0 will default to 'schema.xml'
Uses the defaults
include solr
Cores can be installed via the defined type solr::core. Solr requires a restart when a new core is added. This module doesn't handle restarting solr for adding new cores.
The name of the core (must be unique).
Default: $title
Whether or not files should be updated if they are different from the source
specified.
Default: true
The currency file for the core. It can either be a local file (managed outside of this module) or a remote file served through a puppet file server (puppet:///). The default is the example currency file.
The schema file for the core. It can either be a local file (managed outside of this module) or a remote file served through a puppet file server (puppet:///). The default is the example protwords file.
The currency file for the core. It can either be a local file (managed outside of this module) or a remote file served through a puppet file server (puppet:///). The default is the example currency file.
The schema file for the core. It can either be a local file (managed outside of this module) or a remote file served through a puppet file server (puppet:///). The default is the example solrconfig file.
The schema file for the core. It can either be a local file (managed outside of this module) or a remote file served through a puppet file server (puppet:///). The default is the example stopwords file.
The schema file for the core. It can either be a local file (managed outside of this module) or a remote file served through a puppet file server (puppet:///). The default is the example synonyms file.
file {'/tmp/schema.xml':
ensure => file,
content => inline_template('....'),
}
solr::core{'test':
schema_src_file => '/tmp/schema.xml',
require => File ['/tmp/schema.xml'],
}
This defined type allows shared libraries to be installed for use by solr.
A file to download and install to the tomcat's lib directory.
If the name of the file is to be different than the filename from the the url, the name of the file can be set. Default: undef
The path to copy the file. If setting a custom path, this module does not handle maintaining the path, this is up to the calling module. Default: $solr::solr_lib_dir
The user name of the url to download. Default: undef
The user's password to download the file. Default: undef
solr::shared_lib{'jts':
url => 'http://search.maven.org/remotecontent?filepath=com/vividsolutions/jts/1.13/jts-1.13.jar'
}
Works with debian and redhat based OS's.
The module is open source and available on bitbucket. Please fork!