Puppet Class: solr::params

Defined in:
manifests/params.pp

Overview

Class: solr::params

Full description of class solr here.

Parameters

url

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

version

The version to install. Default: ‘4.10.3’.

jetty_user

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

jetty_host

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

jetty_port

The network port used by Jetty Default Port: 8983

Variables

solr_home

The home directory for solr.

solr_home_src

The source directory for solr.

Examples

GPL-3.0+

Parameters:

  • url (Any) (defaults to: 'http://mirrors.gigenet.com/apache/lucene/solr')
  • version (Any) (defaults to: '4.10.3')
  • jetty_user (Any) (defaults to: 'solr')
  • jetty_host (Any) (defaults to: '127.0.0.1')
  • jetty_port (Any) (defaults to: '8983')


43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
# File 'manifests/params.pp', line 43

class solr::params (
  $url        = 'http://mirrors.gigenet.com/apache/lucene/solr',
  $version    = '4.10.3',
  $jetty_user = 'solr',
  $jetty_host = '127.0.0.1',
  $jetty_port = '8983',
){

  $solr_home = '/opt/solr'
  $solr_home_src = "/opt/solr-${solr::params::version}"

  # OS Specific configuration
  case $::osfamily {
      'redhat': {
        $required_packages  = ['java-1.7.0-openjdk']

      }
      'debian':{
        #$required_packages = ['openjdk-7-jre','jsvc','apache2-utils']
        $required_packages = ['openjdk-7-jre']
      }
      default: {
        fail("Unsupported OS ${::osfamily}.  Please use a debian or \
redhat based system")
      }
  }
}