Classes
solr
: Installs solr using the embedded version of jetty.solr::config
: Full description of class solr here.solr::install
: Installs the packages and software that support solr.solr::params
: Dynamic parameters for the solr class.solr::service
: Manages the service for solr.
Defined types
solr::core
: Sets up a core based on the example core installed by default.solr::shared_lib
: Downloads and installs a file into solr's lib directory.
Configures solr and starts the service.
If using Centos, the firewall rules need to be configured as shown:
add IP Tables
/sbin/iptables -I INPUT 1 -p tcp --dport 8983 -j ACCEPT
/sbin/service iptables save
service iptables restart
COPYRIGHT
GPL-3.0+
include solr
The following parameters are available in the solr
class.
Data type: String
The version to install.
Default value: '6.2.0'
Data type: String
The url of the source repository for apache solr.
Default value: 'http://archive.apache.org/dist/lucene/solr/'
Data type: Boolean
Whether to manage the solr user or not
Default value: true
Data type: String
Run Solr as this user ID. Note, creates this user.
Default value: 'solr'
Data type: String
Listen to connections from this network host Use 0.0.0.0 as solr_host to accept all connections.
Default value: '127.0.0.1'
Data type: String
The network port used by Jetty
Default value: '8983'
Data type: String
The heap size used by jetty.
Default value: '512m'
Data type: String
Contains the solr tarballs and extracted dirs.
Default value: '/opt/solr_downloads'
Data type: String
The install directory (-i
) parameter passed to the solr installer.
Default value: '/opt'
Data type: Boolean
Sets if this module should manage the install directory. True if this module should manage and false otherwise.
Default value: false
Data type: String
The home directory for solr.
Default value: '/opt/solr/server/solr'
Data type: String
The var directory for solr.
Default value: '/var/solr'
Data type: String
The directory for the solr logs.
Default value: '/var/log/solr'
Data type: String
The directory that contains the jvm. Default: (os specific)
- Debian/Ubuntu: '/usr/lib/jvm/java-8-openjdk-amd64/jre'
- CentOS/RHEL: '/usr/lib/jvm/jre-1.8.0'
Default value: $solr::params::java_home
Data type: Optional[Array]
Bash style environment variables passed at the end of the solr server environment.
Default value: undef
Data type: Hash
An array of hashes that define a core which will be created with the create_resources function. See type solr::core for details.
Default value: {}
Data type: Array[String]
Specified in params and is platform dependent.
Default value: $solr::params::required_packages
Data type: Optional[Array]
For configuring ZooKeeper ensemble.
Default value: undef
Data type: String
Maximum allowed log file size (in bytes) before rolling over. Suffixes "KB", "MB" and "GB" are allowed.
Default value: '4MB'
Data type: String
Maximum number of log backup files to keep.
Default value: '9'
Data type: Variant[ Enum['ALL', 'DEBUG', 'ERROR', 'FATAL', 'INFO', 'OFF', 'TRACE', 'TRACE_INT', 'WARN'], String]
The loglevel to set for log4j.
Default value: 'INFO'
Data type: Optional[String]
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'
Default value: undef
Data type: Optional[String]
The path to the key store. If the key store is in the solr's home/etc directory, than can be etc/KEY_STORE_FILE
Default value: undef
Data type: Optional[String]
The secret password of the key store. Required if ssl_key_store is set.
Default value: undef
Data type: Optional[String]
The type of key store.
Default value: 'JKS'
Data type: Optional[String]
If ssl_key_store is set and ssl_trust_store is undef, the settings will use the key store as the trust store. This can be set to an indepenent trust store.
Default value: undef
Data type: Optional[String]
The password to the trust store. If undef and ssl_key_store_password is set, the trust store password will use the key store's password.
Default value: undef
Data type: Optional[String]
The type of trust store.
Default value: 'JKS'
Data type: Optional[Boolean]
Set to true if the client requires authentication.
Default value: undef
Data type: Optional[Boolean]
Enables the client to authenticate but is not required.
Default value: undef
Data type: Optional[String]
If undef, will use values set for ssl_key_store for clients.
Default value: undef
Data type: Optional[String]
If undef, will use values set for ssl_key_store_password for clients.
Default value: undef
Data type: Optional[String]
If undef, will use values set for ssl_trust_store for clients.
Default value: undef
Data type: Optional[String]
If undef, will use values set for ssl_trust_store_password for clients.
Default value: undef
Full description of class solr here.
Installs the packages and software that support solr.
Dynamic parameters for the solr class.
Manages the service for solr.
Sets up a core based on the example core installed by default.
The following parameters are available in the solr::core
defined type.
Data type: String
The name of the core (must be unique).
Default value: $title
Data type: Boolean
Whether or not files should be updated if they are different from the source specified.
Default value: true
Data type: Optional[String]
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:///).
Default value: undef
Data type: Array
An array of hashes to create file resources.
Default value: []
Data type: String
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:///).
Default value: "${::solr::basic_dir}/protwords.txt"
Data type: String
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:///).
Default value: "${::solr::basic_dir}/${solr::schema_filename}"
Data type: String
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:///).
Default value: "${::solr::basic_dir}/solrconfig.xml"
Data type: String
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:///).
Default value: "${::solr::basic_dir}/stopwords.txt"
Data type: String
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:///).
Default value: "${::solr::basic_dir}/synonyms.txt"
Data type: Optional[String]
The elevate 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:///).
Default value: undef
Downloads and installs a file into solr's lib directory.
The following parameters are available in the solr::shared_lib
defined type.
Data type: String
A file to download and install to the solr's lib directory.
Data type: Optional[String]
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 value: undef
Data type: String
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 value: $solr::solr_lib_dir
Data type: Optional[String]
The user name of the url to download.
Default value: undef
Data type: Optional[String]
The user's password to download the file.
Default value: undef