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


ohmage (1) Versions 0.1.0

Installs ohmage server and related clients

cookbook 'ohmage', '~> 0.1.0', :supermarket
cookbook 'ohmage', '~> 0.1.0'
knife supermarket install ohmage
knife supermarket download ohmage
Quality 17%

ohmage Cookbook

Installs and configures the ohmage project and related clients. Information about ohmage can be found at This is an early version of this cookbook, done by someone quite new to chef -- please feel free to offer comments/suggestions.

ohmage has been mainly tested and used in a small single-system environment, so it is recommended to create an ohmage-server role that includes (in order): ohmage::mysql, ohmage::nginx and ohmage::default to ensure a fully-running ohmage setup.

Please note that as of the time of writing this, the mysql_chef-gem package and database package were avoided due to some odd behavior on Ubuntu 14.04.



  • Ubuntu


  • java
  • tomcat
  • mysql
  • git
  • nginx
  • ant (if compiling the server)
  • build-essential (if compiling the server)


  • default['ohmage']['version'] - The version of ohmage to install, default 2.16
  • default['ohmage']['user_setup'] - Whether or not to install the user_setup version of ohmage, default false
  • default['ohmage']['install_method'] - Whether to download the pre-compiled server war, or build the source, default download
  • default['ohmage']['data_dir'] - Location of the ohmage userdata files, default /var/lib/ohmage
  • default['ohmage']['log_dir'] - Location of the ohmage log files, default /var/log/ohmage
  • default['ohmage']['navbar'] - Whether to deploy the iframe-based navbar for frontend clients, default true
  • default['ohmage']['log_level'] - Log level for ohmage logging, default DEBUG
  • default['ohmage']['db']['host'] - Hostname for the mysql server, default localhost
  • default['ohmage']['db']['port'] - Port number for the mysql server, 3306
  • default['ohmage']['db']['name'] - Database name for the mysql server, default ohmage
  • default['ohmage']['db']['user'] - Username for the mysql database, default ohmage
  • default['ohmage']['db']['password'] - Password for the mysql database, default pleasechangeme



Sets up the system pre-requisites for ohmage (java, tomcat) and installs the ohmage server war file (either via http download or git clone and ant clean dist compilation, set via default['ohmage']['install_method'] attribute). Note: ohmage will fail to start without also providing attributes for default['ohmage']['db'] and/or including the ohmage::mysql recipe. in version 0.1.0 there may be some bugs when running mysql somewhere other than localhost.


Installs nginx for use as a reverse proxy to ohmage and a static web-content server for the ohmage frontend clients. As of version 0.1.0 this does not handle SSL communication. If default['ohmage']['navbar'] is set to true (the default), this recipe will also install the ohmage navbar at the nginx root directory (by default is /var/www/).


Installs the open source ohmage frontends from pre-compiled packages (those that need to be built/compiled) and from source (using git clone). These will be installed to /var/www/webapps by default.

License and Authors

Copyright:: 2014, UC Regents

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

java >= 0.0.0
tomcat >= 0.0.0
build-essential >= 0.0.0
mysql >= 0.0.0
git >= 0.0.0
ant >= 0.0.0
nginx >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.


This file is used to list changes made in each version of the ohmage cookbook.


  • [your_name] - Initial release of ohmage

Check the Markdown Syntax Guide for help with Markdown.

The Github Flavored Markdown page describes the differences between markdown on github and standard markdown.

Collaborator Number Metric

0.1.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.1.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.1.0 failed this metric

FC007: Ensure recipe dependencies are reflected in cookbook metadata: ohmage/recipes/default.rb:69
FC064: Ensure issues_url is set in metadata: ohmage/metadata.rb:1
FC065: Ensure source_url is set in metadata: ohmage/metadata.rb:1
FC066: Ensure chef_version is set in metadata: ohmage/metadata.rb:1
FC069: Ensure standardized license defined in metadata: ohmage/metadata.rb:1
FC121: Cookbook depends on cookbook made obsolete by Chef 14: ohmage/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

0.1.0 passed this metric

Testing File Metric

0.1.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.1.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 include a tag that matches this cookbook version number