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

RSS

deploy_wrapper (5) Versions 0.2.0

Provides a definition that sets up an ssh key and ssh wrapper script for use with deploy or deploy_revision resources

Berkshelf/Librarian
Policyfile
Knife
cookbook 'deploy_wrapper', '~> 0.2.0'
cookbook 'deploy_wrapper', '~> 0.2.0', :supermarket
knife cookbook site install deploy_wrapper
knife cookbook site download deploy_wrapper
README
Dependencies
Quality 33%

Description

The deploy_wrapper cookbook provides a lightweight resource provider which sets up an ssh key and ssh wrapper script for use with deploy or deploy_revision resources.

Attributes

  • ssh_wrapper_path - final path for your ssh wrapper script.
  • ssh_wrapper_dir - the ssh wrapper script will be written to this directory.
  • ssh_key_file - key file to use.
  • ssh_key_dir - the ssh key file will be written to this directory.
  • ssh_key_data - the private key data to write into the ssh key file, this override ssh_key_file.
  • owner - the owner for ssh wrapper and key files, defaults to 'root'
  • group - the group ownership for ssh wrapper and key files, defaults to 'root'
  • sloppy - a boolean which toggles whether or not the ssh wrapper script will attempt to validate the repo's ssh key. This parameter defaults to false, but the default setting will probably cause problems when executing deploy resources if ~/.ssh/known_hosts has not been pre-populated manually or via another cookbook.

Platform

Should work on any platform where Chef runs. Tested on Ubuntu.

Requirements

N/A

Usage example

include_recipe 'deploy_wrapper'

deploy_wrapper 'myapp' do
    owner 'root'
    group 'root'
    ssh_wrapper_dir '/opt/example/shared'
    ssh_key_dir '/root/.ssh'
    ssh_key_data secrets['deploy_keys']['myapp']
    sloppy true
end

deploy_revision '/opt/example/myapp' do
    revision 'master'
    repo 'https://github.com/example/myapp'
    ssh_wrapper '/opt/example/shared/myapp_deploy_wrapper.sh'
end

License and Author

Author:: Cameron Johnston cameron@rootdown.net Author:: Guilhem Lettron guilhem@lettron.fr

Copyright:: 2012, Cameron Johnston

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

http://www.apache.org/licenses/LICENSE-2.0

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

This cookbook has no specified dependencies.

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

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

0.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 https://github.com/user/repo, and your repo must contain a CONTRIBUTING.md file

Foodcritic Metric
            

0.2.0 failed this metric

FC064: Ensure issues_url is set in metadata: deploy_wrapper/metadata.rb:1
FC065: Ensure source_url is set in metadata: deploy_wrapper/metadata.rb:1
FC066: Ensure chef_version is set in metadata: deploy_wrapper/metadata.rb:1
FC067: Ensure at least one platform supported in metadata: deploy_wrapper/metadata.rb:1
FC068: Ensure license is set in metadata: deploy_wrapper/metadata.rb:1
FC069: Ensure standardized license defined in metadata: deploy_wrapper/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.2.0 failed this metric

deploy_wrapper does not have a valid open source license.
Acceptable licenses include Apache-2.0, apachev2, Apache 2.0, MIT, mit, GPL-2.0, gplv2, GNU Public License 2.0, GPL-3.0, gplv3, GNU Public License 3.0.

No Binaries Metric
            

0.2.0 passed this metric

Publish Metric
            

0.2.0 passed this metric

Supported Platforms Metric
            

0.2.0 failed this metric

deploy_wrapper should declare what platform(s) it supports.

Testing File Metric
            

0.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 https://github.com/user/repo, and your repo must contain a TESTING.md file

Version Tag Metric
            

0.2.0 passed this metric