Skip to content

NorthPage/solr-jetty-cookbook

Repository files navigation

solr-jetty-cookbook

Installs and configures Solr

This cookbook uses concepts from https://github.com/dwradcliffe/chef-solr, but uses the libarchive cookbook and allows running as a non-root user.

Supported Platforms

  • Centos 7.0
  • Ubuntu 16.04

Attributes

Key Type Description Default
['solr-jetty']['version'] String Solr version to install 4.10.2
['solr-jetty']['url'] String The URL for pulling solr https://archive.apache.org/dist/lucene/solr/#{node['solr-jetty']['version']}/solr-#{node['solr-jetty']['version']}.tgz
['solr-jetty']['install_dir'] String Where to install solr /opt
['solr-jetty']['port'] String The listen port for solr 8983
['solr-jetty']['user'] String The user to run solr solr
['solr-jetty']['manage_user'] Boolean Create/manage the solr user. true
['solr-jetty']['install_java'] Boolean Enable/disable java installation (via the `java` cookbook) true

Usage

solr-jetty::default

Include solr-jetty in your node's run_list:

{
  "run_list": [
    "recipe[solr-jetty::default]"
  ]
}
  • If node['solr-jetty']['install_java'] is true, it installs and configures oracle java 8
  • If node['solr-jetty']['manage_user'] is true, it will create and manage node['solr-jetty']['user']
  • Downloads the solr archive (for the given version) and extracts it into node['solr-jetty']['install_dir']
  • If node['solr-jetty']['install_dir']/solr exists, it will be moved
  • Copies node['solr-jetty']['install_dir']/solr-node['solr-jetty']['version']/example to node['solr-jetty']['install_dir']/solr
  • If the version is changed, or the archive is deleted from disk, solr will be reinstalled
  • Installs init scripts and platform specific configuration
  • If you want to open the listen port, include recipe[solr-jetty::iptables] recipe

License and Authors

Author:: E Camden Fisher ([email protected]) Copyright (C) 2015-2017 NorthPage

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

About

Manages solr running with jetty

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published