Install Apache Solr with special configurations for Drupal sites.
Try this cookbook with drupal-lamp https://github.com/newmediadenver/drupal-lamp
To get it working with drupal-lamp:
- Add reference in BerksFile
- Add "recipe[drupal-solr]", to the run list
Ubuntu
curl tomcat
default['drupal_solr']['version'] = '4.2.1'
default['drupal_solr']['url'] = "http://archive.apache.org/dist/lucene/solr/" +
node['drupal_solr']['version'] + "/solr-" +
node['drupal_solr']['version']+ ".tgz"
default['drupal_solr']['app_name'] = "solr"
default['drupal_solr']['war_dir'] = "/opt/solr"
default['drupal_solr']['home_dir'] = "/opt/solr/#{node['drupal_solr']['app_name']}"
default['drupal_solr']['php_client_url'] =
"https://solr-php-client.googlecode.com/files/SolrPhpClient.r22.2009-11-09.tgz"
Installs solr with Drupal optimized settings.
The cookbook provides the following Rake tasks for testing:
rake foodcritic # Lint Chef cookbooks
rake integration # Alias for kitchen:all
rake kitchen:all # Run all test instances
rake kitchen:default-centos-64 # Run default-centos-64 test instance
rake kitchen:default-ubuntu-1204 # Run default-ubuntu-1204 test instance
rake rubocop # Run RuboCop style and lint checks
rake spec # Run ChefSpec examples
rake test # Run all tests
Author:: Alex Knoll (arknoll@gmail.com)
Copyright:: 2014, Alex Knoll
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.
We welcome contributed improvements and bug fixes via the usual workflow:
- Fork this repository
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new pull request