valentinsavenko-solr

Solr Module for CentOS & RHEL.


Keywords
solr
License
CNRI-Python-GPL-Compatible
Install
puppet module install valentinsavenko-solr --version 0.7.10

Documentation

Puppet-Solr module

Build Status

Solr module, very basic. Only tested on CentOS7 / RedHat7.

It downloads the version defined in hiera from http://archive.apache.org/dist/lucene/solr/, installs Solr following the offcial docu here and starts Solr as a init.d Service.

For more info on design decisions check the blog I wrote about this module.

Setup

Setup Requirements

This module expects Java to be present on the system e.g. 'puppetlabs-java'. The default solr version was tested with Oracle Java 1.8.

Beginning with solr

The minimal code to make it run is simply:

include solr

It uses all the default values from hiera at data/common.yaml If you need to change those, create your own hiera file and override those values.

Usage / Reference

Check the hiera file at data/common.yaml for all possible inputs The only tricky param is maybe solr::zk_hosts, you need to actually have Zookeeper running, for it to make sense, e.g.:

  #------------------------------------------------------------------------------#
  # deric/puppet-zookeeper                                                       #
  # https://github.com/deric/puppet-zookeeper                                    #
  #------------------------------------------------------------------------------#
  class { 'zookeeper': 
    install_method  => 'archive',
    archive_dl_site => 'http://mirror.netcologne.de/apache.org/zookeeper',
    archive_version => '3.4.13',
    service_provider    => 'systemd',
    manage_service_file => true,
  }