Puppet Class: solr
- Inherits:
- ::solr::params
- Defined in:
- manifests/init.pp
Overview
Class: solr
Installs solr using the embedded version of jetty. Configures solr and starts the service.
Note, if you are using Centos, you will most likely need to configure your firewall rules like so
add IP Tables
/sbin/iptables -I INPUT 1 -p tcp --dport 8983 -j ACCEPT
/sbin/service iptables save
service iptables restart
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
Examples
class { 'solr':
servers => [ 'pool.ntp.org', 'ntp.local.company.com' ],
}
Copyright
GPL-3.0+
49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 |
# File 'manifests/init.pp', line 49
class solr (
$url = $solr::params::url,
$version = $solr::params::version,
$jetty_user = $solr::params::jetty_user,
$jetty_host = $solr::params::jetty_host,
$jetty_port = $solr::params::jetty_port,
) inherits ::solr::params{
anchor{'solr::begin':}
class{'solr::install':
require => Anchor['solr::begin'],
}
class{'solr::config':
require => Class['solr::install'],
}
class{'solr::service':
subscribe => Class['solr::config'],
}
anchor{'solr::end':
require => Class['solr::service'],
}
}
|