Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: cassandra
Fetching contributors…

Cannot retrieve contributors at this time

58 lines (35 sloc) 1.987 kb


Sets up user and environment for running solr instances.


Platform and Application Environment:

Tested on Ubuntu 8.10. May work on other platforms, esp Ubuntu/Debian.

Requires solr installed, such as a vendor plugin for a Rails application. Assumes 'start.jar' exists. Also requires ssh keys for solr user. See usage.


Opscode cookbooks,

  • capistrano (capistrano_setup)

  • java

  • runit (runit_service)


  • solr[:user] - username for solr process and files/dirs.

  • solr[:uid] - UID for solr user.

  • solr[:group] - group name for solr files/dirs.

  • solr[:gid] - GID for solr group.


To create a solr instance for an application, use the solr_instance define:

solr_instance "my_app"

The recipe assumes that id_rsa ssh key pair has been created for the solr user. The files should be located in the cookbook where the solr_instance is used (for example a site-cookbook).

Also create the runit run and log run templates. For now the directory to cd into needs to be specified in the run template. See the sample in this cookbook.


Optionally specify a cookbook where the ssh keypair is located, otherwise generate keys and put the files in the solr cookbook. Empty files are located there for placeholders.



Joshua Timberman (<>)


2009, Opscode, Inc

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

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.

Jump to Line
Something went wrong with that request. Please try again.