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


opengrok (3) Versions 0.3.0

Installs/Configures OpenGrok

cookbook 'opengrok', '~> 0.3.0'
cookbook 'opengrok', '~> 0.3.0', :supermarket
knife supermarket install opengrok
knife supermarket download opengrok
Quality 63%

OpenGrok cookbook

Build Status Cookbook Version

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



  • Debian / Ubuntu derivatives
  • RHEL and derivatives
  • openSUSE / SUSE Linux Enterprises


  • Chef 12.5+


  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.



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.


  • 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:
  • 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'


  • install (default)


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


  • 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


  • update (default)


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

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

tomcat ~> 2.3.1
ark ~> 1.2.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Change Log


0.3.0 - 2016-10-20


  • Support debian-8.5
  • Added daun usage in helloworld example

0.2.0 - 2016-09-25


  • Support opensuse-13.2
  • Support opensuse-leap-42.1
  • Support ubuntu-16.04
  • opengrok_index output goes to both console and file

0.1.0 - 2016-09-16


  • Initial release. Support only centos-7.2

Collaborator Number Metric

0.3.0 failed this metric

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

Contributing File Metric

0.3.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Foodcritic Metric

0.3.0 passed this metric

No Binaries Metric

0.3.0 passed this metric

Publish Metric

0.3.0 passed this metric

Supported Platforms Metric

0.3.0 passed this metric

Testing File Metric

0.3.0 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must contain a file

Version Tag Metric

0.3.0 passed this metric