cookbook 'application_git', '= 1.0.0'
application_git (3) Versions 1.0.0 Follow5
A plugin for poise-application to deploy applications from git.
cookbook 'application_git', '= 1.0.0', :supermarket
knife supermarket install application_git
knife supermarket download application_git
To deploy from a private GitHub repository:
application '/srv/myapp' do git 'firstname.lastname@example.org:example/myapp.git' do deploy_key chef_vault_item('deploy_keys', 'myapp')['key'] end end
Chef 12 or newer is required.
application_git resource deploys code from git. It extends the core
resource to support deploy keys and disabling strict host key verification.
application '/srv/myapp' do git 'email@example.com:example/myapp.git' end
All actions work the same as the core
: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
All properties from the core
git resource work the same way with the following
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)
application_git resource can be used directly as a replacement for the
application_git '/srv/myapp' do repository 'firstname.lastname@example.org:example/myapp.git' deploy_key chef_vault_item('deploy_keys', 'myapp')['key'] end
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 'email@example.com:example/myapp.git' end end application '/srv/myapp' do git 'firstname.lastname@example.org:example/myapp.git' end
The Poise test server infrastructure is sponsored by Rackspace.
Copyright 2015, 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.
|git >= 0.0.0|
|poise ~> 2.0|
|application ~> 5.0|
There are no cookbooks that are contingent upon this one.
- Initial release.
1.0.0 passed this metric
1.0.0 passed this metric