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


tcc (2) Versions 1.0.4

Installs/Configures tcc

cookbook 'tcc', '~> 1.0.4'
cookbook 'tcc', '~> 1.0.4', :supermarket
knife supermarket install tcc
knife supermarket download tcc
Quality 25%

tcc Cookbook

Handles the installation and configuration of Tomcat Control Center environment and its instances.



See metadata.rb



<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['tcc']['user']</tt></td> <td>String</td> <td>Main TCC user (not particular instance user)</td> <td><tt>tcc</tt></td> </tr> <tr> <td><tt>['tcc']['group']</tt></td> <td>String</td> <td>Main TCC group</td> <td><tt>tcc</tt></td> </tr> <tr> <td><tt>['tcc']['home']</tt></td> <td>String</td> <td>Where TCC home is and later the TCC installation is usually placed - usually at TCC's user home</td> <td><tt>e.g. /home/tcc</tt></td> </tr> <tr> <td><tt>['tcc']['location']</tt></td> <td>String</td> <td>Where TCC installation resides - usually at TCC's user home/platform/tcc</td> <td><tt>/home/tcc/tcc</tt></td> </tr> <tr> <td><tt>['tcc']['bundle_url']</tt></td> <td>String</td> <td>Where to download TCC bundle (tar.gz) from</td> <td><tt></tt></td> </tr>



<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['tcc']['templates']</tt></td> <td>Hash</td> <td>Contains a map of templates. Key is a template name. It contains list of params: type, libs. Currently only supported type = "tomcat7". "libs" is an array of objects with keys: repo, artifact_id. Now supported "repo" is "maven" only. "artifact_id" is in the colon-separated Maven artifact notation.</td> <td><tt></tt></td> </tr> </table>


<table> <tr> <th>Key</th> <th>Type</th> <th>Description</th> <th>Default</th> </tr> <tr> <td><tt>['tcc']['instances']</tt></td> <td>Hash</td> <td>Contains a map of instances. Key is an instance name. It contains list of params: template, user. "template" is the name of a template defined in node['tcc']['templates']. "user" is the assigned user for the instance.</td> <td><tt></tt></td> </tr> <tr> <td><tt>['tcc']['template_cookbooks']</tt></td> <td>String</td> <td>Defines the cookbook where templates for resources and setenv are located. It should be overriden by every wrapper cookbook because that cookbook contains proper TCC configurations</td> <td><tt></tt></td> </tr>




Installs Tomcat Control Center environment for the specified user.

e.g. Just include tcc in your node's run_list:

  "run_list": [


Installs general environmnent for all instances. Utilizes TCC's central resource management.

In the wrapper cookbook you have to create CSV resource templates in the pattern:



  • type - one of known TCC resource types - connector, db, env, mail, rmi
  • environment - chef's configured environment assigned to the node


Utilizes the list of TCC instances defined in node.tcc.instances in order to create NewRelic Java configuration. It automatically installs NewRelic server monitoring as well.

Later on if you want to enable NewRelic for an instance, all you need to do is to enable NewRelic agent in setenv.csv.<environment>.erb template and the configuration will be automatically taken.

The recipe needs at least following attributes if you are going to include it in wrapper cookbook:

default['newrelic']['license'] = "supersecretlicensekey_from_newrelic"
default['newrelic']['server_monitoring']['license'] = default['newrelic']['license']
default['newrelic']['application_monitoring']['license'] = default['newrelic']['license']
default['newrelic']['plugin_monitoring']['license'] = default['newrelic']['license']
override['newrelic']['java-agent']['execute_install'] = false

You will find the generated configuration in <instance_home>/newrelic/newrelic.yml

NOTE: unless is merged the recipe creates just required directories


  1. Fork the repository on Github -
  2. Create a named feature branch (like add_component_x)
  3. Write your change
  4. Write tests for your change (if applicable)
  5. Run the tests, ensuring they all pass
  6. Submit a Pull Request using Github

License and Authors

Author:: Ladislav Gazo ( Copyright:: 2014, Seges Ltd.

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, 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

newrelic >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric

1.0.4 failed this metric

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

Contributing File Metric

1.0.4 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

1.0.4 failed this metric

FC009: Resource attribute not recognised: tcc/recipes/default.rb:15
FC034: Unused template variables: tcc/templates/default/tcc-init.d.erb:1
FC064: Ensure issues_url is set in metadata: tcc/metadata.rb:1
FC065: Ensure source_url is set in metadata: tcc/metadata.rb:1
FC066: Ensure chef_version is set in metadata: tcc/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: tcc/metadata.rb:1
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

1.0.4 passed this metric

Publish Metric

1.0.4 passed this metric

Supported Platforms Metric

1.0.4 failed this metric

tcc should declare what platform(s) it supports.

Testing File Metric

1.0.4 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

1.0.4 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