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


application_git (3) Versions 1.2.0

A plugin for poise-application to deploy applications from git.

cookbook 'application_git', '~> 1.2.0'
cookbook 'application_git', '~> 1.2.0', :supermarket
knife supermarket install application_git
knife supermarket download application_git
Quality 50%

Application_Git Cookbook

Build Status Gem Version Cookbook Version Coverage Gemnasium License

A Chef cookbook to handle deploying code from git when using the application cookbook.

Quick Start

To deploy from a private GitHub repository:

application '/srv/myapp' do
  git '' do
    deploy_key chef_vault_item('deploy_keys', 'myapp')['key']


Chef 12.1 or newer is required.



The application_git resource deploys code from git. It extends the core git resource to support deploy keys and disabling strict host key verification.

application '/srv/myapp' do
  git ''


All actions work the same as the core git resource.

  • :sync – Clone and checkout the requested revision (default)
  • :checkout – Checkout the request revision. If the repository isn't already cloned, this action does nothing.
  • :export – Export the repository without the .git folder.


All properties from the core git resource work the same way with the following additions:

  • deploy_key – SSH key to use with git. Can be specified either as a path to key file already created or as a string value containing the key directly.
  • strict_ssh – Enable strict SSH host key checking. (default: false)

DSL Usage

The application_git resource can be used directly as a replacement for the core git resource:

application_git '/srv/myapp' do
  repository ''
  deploy_key chef_vault_item('deploy_keys', 'myapp')['key']

Within the application resource, a simplified DSL is available. As with other application plugins, the default name of the resource if unspecified is the application path. The following two examples are equivalent:

application '/srv/myapp' do
  git do
    repository ''

application '/srv/myapp' do
  git ''


Development sponsored by Chef Software, Symonds & Son, and Orion.

The Poise test server infrastructure is sponsored by Rackspace.


Copyright 2015-2017, Noah Kantrowitz

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

poise-git ~> 1.0
application ~> 5.0
poise ~> 2.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Application_Git Changelog


  • Major refactor on top of poise-git but should be invisible to users.


  • #2 – Inherit user and group values from the parent application resource.
  • #3 – Fix usage with users created during the current Chef run.


  • Initial release.

Collaborator Number Metric

1.2.0 failed this metric

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

Contributing File Metric

1.2.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

1.2.0 passed this metric

No Binaries Metric

1.2.0 passed this metric

Publish Metric

1.2.0 passed this metric

Supported Platforms Metric

1.2.0 failed this metric

application_git should declare what platform(s) it supports.

Testing File Metric

1.2.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

1.2.0 passed this metric