cookbook 'opengrok', '~> 0.3.0'
opengrok (3) Versions 0.3.0 Follow0
Installs/Configures OpenGrok
cookbook 'opengrok', '~> 0.3.0', :supermarket
knife supermarket install opengrok
knife supermarket download opengrok
OpenGrok cookbook
A chef library cookbook that provides resources for installing and indexing OpenGrok.
Requirements
Platforms
- Debian / Ubuntu derivatives
- RHEL and derivatives
- openSUSE / SUSE Linux Enterprises
Chef
- Chef 12.5+
Usage
- Take a look into the [
helloworld recipe
](test/fixtures/cookbooks/opengrok_test/recipes/helloworld.rb). -
Adapt the
helloworld recipe
to your own cookbook wrapper, especially the generation of thesrc
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. -
Schedule
chef-client
as a cron job. This will be the point where yoursrc
is being updated periodically and indexed by ChefYou 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.
Change Log
Unreleased
0.3.0 - 2016-10-20
Added
- Support debian-8.5
- Added daun usage in helloworld example
0.2.0 - 2016-09-25
Added
- 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
Added
- 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.3.0 passed this metric
No Binaries 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.0 failed this 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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file
Foodcritic Metric
0.3.0 passed this metric
No Binaries 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.0 passed this 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 https://github.com/user/repo, and your repo must contain a TESTING.md file
Version Tag 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number
0.3.0 failed this 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 https://github.com/user/repo, and your repo must include a tag that matches this cookbook version number