Forge Home

solr

Configures and Installs Apache Solr

580,301 downloads

2,456 latest version

3.1 quality score

We run a couple of automated
scans to help you access a
module's quality. Each module is
given a score based on how well
the author has formatted their
code and documentation and
modules are also checked for
malware using VirusTotal.

Please note, the information below
is for guidance only and neither of
these methods should be considered
an endorsement by Puppet.

Version information

  • 7.0.2 (latest)
  • 7.0.1
  • 7.0.0
  • 6.0.12
  • 6.0.11
  • 6.0.10
  • 6.0.9
  • 6.0.8
  • 6.0.7
  • 6.0.6
  • 6.0.5
  • 6.0.4
  • 6.0.3
  • 6.0.1
  • 6.0.0
  • 0.9.0
  • 0.8.0
  • 0.7.1
  • 0.7.0
  • 0.6.3
  • 0.6.2
  • 0.6.0
  • 0.5.15
  • 0.5.14
  • 0.5.13
  • 0.5.12
  • 0.5.11
  • 0.5.10
  • 0.5.9
  • 0.5.8
  • 0.5.7
  • 0.5.6
  • 0.5.5
  • 0.5.3
  • 0.5.2
  • 0.5.0
  • 0.4.0
  • 0.3.6
  • 0.3.5
  • 0.3.4
  • 0.3.3
  • 0.3.2
  • 0.3.1
  • 0.3.0
  • 0.2.2
  • 0.2.1
  • 0.2.0
  • 0.1.1
released Sep 1st 2015
This version is compatible with:
  • ,

Start using this module

  • r10k or Code Manager
  • Bolt
  • Manual installation
  • Direct download

Add this module to your Puppetfile:

mod 'landcareresearch-solr', '0.3.2'
Learn more about managing modules with a Puppetfile

Add this module to your Bolt project:

bolt module add landcareresearch-solr
Learn more about using this module with an existing project

Manually install this module globally with Puppet module tool:

puppet module install landcareresearch-solr --version 0.3.2

Direct download is not typically how you would use a Puppet module to manage your infrastructure, but you may want to download the module in order to inspect the code.

Download

Documentation

landcareresearch/solr — version 0.3.2 Sep 1st 2015

solr

Puppet Forge Bitbucket Build Status

About

Installs and configures apache solr and runs the embedded jetty service. http://lucene.apache.org/solr/

Originally, this module supported solr 4.x. However, version 0.3.0 has been upgraded to work with solar 5.x and no longer supports 4.x So if you want to use solr 4.x, than please continue to use 0.2.2.

Module Description

This module utilizes the params concept so all default parameters are configured through solr::params.

Setup

What solr affects

Installs the following packages

  • java 7 jre.

Configuration

solr::params class is used for configuration, but can be overridden with the specified parameters.

Parameters

url

The url of the source repository for apache jetty. Default: 'http://mirrors.gigenet.com/apache/lucene/solr',

version

The version to install. Default: '4.10.4'.

solr_user

Run Solr as this user ID (default: solr) Note, creates this user.

solr_host

Listen to connections from this network host Use 0.0.0.0 as host to accept all connections. Default: 127.0.0.1

solr_port

The network port used by Jetty Default Port: 8983

timeout

The timeout used for downloading the solr package. Default: 120 seconds

Usage

Simple Use Case

Uses the defaults

include solr

Installing Cores

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.

Parameters

core_name

The name of the core (must be unique). Default: $title

schema_src_file

The schema file must exist on the file system and should be controlled outside of this module. This will simply link to the schema file. Default: the basic example core's schema.

Example

file {'/tmp/schema.xml':
  ensure => file,
  content => inline_template('....'),
}

solr::core{'test':
  schema_src_file => '/tmp/schema.xml',
  require         => File ['/tmp/schema.xml'],
}

Installing Shared Libraries

This defined type allows shared libraries to be installed for use by solr.

Parameters

url

A file to download and install to the tomcat's lib directory.

filename

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

path

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

web_user

The user name of the url to download. Default: undef

web_password

The user's password to download the file. Default: undef

Example

solr::shared_lib{'jts':
  url => 'http://search.maven.org/remotecontent?filepath=com/vividsolutions/jts/1.13/jts-1.13.jar'
}

Limitations

Works with debian and redhat based OS's.

Development

The module is open source and available on bitbucket. Please fork!