Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status

RSS

opengrok (3) Versions 0.2.0

Installs/Configures OpenGrok

Policyfile
Berkshelf
Knife
cookbook 'opengrok', '= 0.2.0', :supermarket
cookbook 'opengrok', '= 0.2.0'
knife supermarket install opengrok
knife supermarket download opengrok
README
Dependencies
Quality 50%

OpenGrok cookbook

Build Status
Cookbook Version

A chef library cookbook that provides resources for installing and indexing OpenGrok.

Requirements

Platforms

  • RHEL and derivatives

Chef

  • Chef 12.5+

Usage

  1. Take a look into the [helloworld recipe](test/fixtures/cookbooks/opengrok_test/recipes/helloworld.rb).
  2. Adapt the helloworld recipe to your own cookbook wrapper, especially the generation of the src directory.

    You can use any chef resources from any community cookbooks to populate that src directory as long as its supported by OpenGrok, e.g. git resource, subversion resource, etc.

  3. Schedule chef-client as a cron job. This will be the point where your src is being updated periodically and indexed by Chef

    You can use the chef-client::cron recipe.

Resources

opengrok_install

opengrok_install installs an instance of opengrok and all of its required dependencies
and files. This resource will also install tomcat and enable it as a service for you.

properties

  • download_url: The opengrok download URL
  • download_checksum: The SHA-256 checksum of the opengrok binary
  • tomcat_version: The version of tomcat to be installed. Default: 8.0.36
  • tomcat_tarball_uri: The full path to download tomcat. Default: http://archive.apache.org/dist/tomcat/tomcat-8/v8.0.36/bin/apache-tomcat-8.0.36.tar.gz
  • install_path: The full path to install opengrok. With the default value, the installation will go to /opt/opengrok. Default: /opt
  • home_path: The full path to opengrok home directory. This will be the location where the src directory, data directory, and configuration.xml is found. Default: /var/opengrok
  • version: The version of opengrok to be installed. Currently only used for directory name generation.
  • opengrok_user: The system user who will manage opengrok files and service. Default: 'opengrok'
  • opengrok_group: The group which will own opengrok files. Default: 'opengrok'

actions

  • install (default)

opengrok_index

opengrok_index will trigger OpenGrok indexing process. You can only use opengrok_index when you have declared opengrok_install.

properties

  • java_opts: The Java options that will be used for the OpenGrok indexing jar. Default: -Xmx2048m
  • extra_opts: The options that will be passed on to OpenGrok indexing jar. Default: -S -P -H

actions

  • update (default)

Copyright

Copyright 2016 Wisen Tanasa

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.

Dependent cookbooks

ark ~> 1.2.0
tomcat ~> 2.3.1

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.2.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Foodcritic Metric
            

0.2.0 passed this metric