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 supermarket mailing list.

Select Badges

Select Supported Platforms


ohmage (1) Versions 0.1.0

Installs ohmage server and related clients

cookbook 'ohmage', '~> 0.1.0'
cookbook 'ohmage', '~> 0.1.0', :supermarket
knife cookbook site install ohmage
knife cookbook site download ohmage

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

nginx >= 0.0.0
ant >= 0.0.0
git >= 0.0.0
mysql >= 0.0.0
build-essential >= 0.0.0
tomcat >= 0.0.0
java >= 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.

Foodcritic Metric

0.1.0 failed this metric

FC001: Use strings in preference to symbols to access node attributes: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/templates/default/ohmage.conf.erb:1
FC002: Avoid string interpolation where not required: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/recipes/db-prep.rb:48
FC007: Ensure recipe dependencies are reflected in cookbook metadata: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/recipes/default.rb:69
FC048: Prefer Mixlib::ShellOut: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/recipes/db-prep.rb:32
FC048: Prefer Mixlib::ShellOut: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/recipes/db-prep.rb:45
FC048: Prefer Mixlib::ShellOut: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/recipes/db-prep.rb:60
FC048: Prefer Mixlib::ShellOut: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/recipes/mysql.rb:31
FC048: Prefer Mixlib::ShellOut: /tmp/cook/67f002c27ba6024bae9ec460/ohmage/recipes/mysql.rb:38