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


tomee (14) Versions 0.6.0

Installs/Configures TomEE

cookbook 'tomee', '= 0.6.0', :supermarket
cookbook 'tomee', '= 0.6.0'
knife supermarket install tomee
knife supermarket download tomee
Quality 0%


This cookbook installs and configures Apache TomEE.
It starts downloading TomEE from an tomee_url specified in attributes/default.rb.

This cookbook is a beta version inspired on Opscode's Tomcat cookbook.

Supported Platforms

  • Debian, Ubuntu (OpenJDK, Oracle)
  • CentOS 6+, Red Hat 6+, Fedora

Used with: Centos (6.2, 6.5) and Ubuntu (14.04)


  • java
  • openssl


This cookbook cames with a dependency to java and openssl cookbooks.<br>

common-packages recipe has been added to fix the installation of
java with debian/ubuntu platforms.<br>

java cookbook has a dependency with curl package.
When java cookbook is executed it doesn't check for apt-get repository update,
curl package installation fails because of apt-get repository not is updated yet.<br>

common-packages has been executed as first just to update apt-get repository before.


<td>If you want deploy multiple instances within the same node, you must also fill the 'instances' attribute with the list of instances, ports, etc.</td>
<td>Service name, used only for base instance</td>
<td>User name</td>
<td>Group name</td>
<td>Tomee tar gz url</td>
<td>HTTP port number</td>
<td>HTTP proxy port number</td>
<td>HTTP port number</td>
<td>HTTP proxy port number</td>
<td>ajp port number</td>
<td>Shutdown port</td>
<td>List of domain aliases mapped</td>
<td><tt>["", ""]</tt></td>



Include tomee in your node's run_list, if you want install Java you must prepend common-packages and java::default :

  "run_list": [

License and Authors

Author:: Vincenzo D'Amore (

Dependent cookbooks

java ~> 1.21
openssl >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.


Added vhosts and aliases configuration
Added ssl support
Bug fix


Changed default box in Vagrantfile = 'chef/ubuntu-14.04'

Added in Vagrantfile a forwarded port mapping which allows access to Tomee default 8080 "forwarded_port", guest: 8080, host: 8080


Fixed few Foodcritic warning


Initial release of tomee

Foodcritic Metric

0.6.0 failed this metric

FC017: LWRP does not notify when updated: /tmp/cook/6ac177045f4df82959bd3f2e/tomee/providers/instance.rb:7
FC024: Consider adding platform equivalents: /tmp/cook/6ac177045f4df82959bd3f2e/tomee/providers/instance.rb:137
FC024: Consider adding platform equivalents: /tmp/cook/6ac177045f4df82959bd3f2e/tomee/recipes/common-packages.rb:12
FC031: Cookbook without metadata file: /tmp/cook/6ac177045f4df82959bd3f2e/tomee/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/6ac177045f4df82959bd3f2e/tomee/metadata.rb:1
FC048: Prefer Mixlib::ShellOut: /tmp/cook/6ac177045f4df82959bd3f2e/tomee/libraries/myvagrantlib.rb:17