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

RSS

poise-git (1) Versions 1.0.0

A Chef cookbook for installing and using Git.

Policyfile
Berkshelf
Knife
cookbook 'poise-git', '~> 1.0.0', :supermarket
cookbook 'poise-git', '~> 1.0.0'
knife supermarket install poise-git
knife supermarket download poise-git
README
Dependencies
Changelog
Quality 50%

Poise-Git Cookbook

Build Status
Gem Version
Cookbook Version
Coverage
Gemnasium
License

A Chef cookbook to manage Git.

Quick Start

To install Git and clone a repository using a deploy key from a data bag:

poise_git '/srv/myapp' do
  repository 'git@github.com:example/myapp.git'
  deploy_key data_bag_item('keys', 'myapp')['key']
end

To install Git and clone a repository using a deploy key that already exists on
disk:

poise_git '/srv/myapp' do
  repository 'git@github.com:example/myapp.git'
  deploy_key '/path/to/mykey.pem'
end

Recipes

  • poise-git::default – Install Git.

Attributes

  • node['poise-git']['default_recipe'] – Recipe used by poise_git to install Git if not already available. (default: poise-git)
  • node['poise-git']['provider'] – Default provider for poise_git_client resource instances. (default: auto)
  • node['poise-git']['recipe'][*] – All subkeys of 'recipe' will be passed as properties to the poise_git_client resource before installation when using the poise-git::default recipe.

Resources

poise_git

The poise_git resource extends the core git resource, adding a deploy_key
property to use SSH deploy keys automatically.

poise_git '/srv/myapp' do
  repository 'git@github.com:example/myapp.git'
  deploy_key 'mysecretkey'
end

The poise_git resource supports all the same actions and properties as the
core git resource.

The deploy_key property can either be passed the absolute path to an existing
SSH key file, or the raw SSH private key text.

poise_git_client

The poise_git_client resource installs Git.

poise_git_client 'git'

Actions

  • :install – Install Git. (default)
  • :uninstall – Uninstall Git.

Properties

  • version – Version of Git to install. If a partial version is given, use the latest available version matching that prefix. (name property)

Provider Options

The poise_git_client resource uses provide options for per-provider configuration. See
the poise-service documentation
for more information on using provider options.

Git Client Providers

system

The system provider installs Git using system packages. This is currently
only tested on platforms using apt-get and yum (Debian, Ubuntu, RHEL, CentOS
Amazon Linux, and Fedora) and is a default provider on those platforms. It may
work on other platforms but is untested.

poise_git_client 'git' do
  provider :system
end

Options

  • package_name – Override auto-detection of the package name.
  • package_upgrade – Install using action :upgrade. (default: false)
  • package_version – Override auto-detection of the package version.

dummy

The dummy provider supports using the poise_git_client resource with ChefSpec
or other testing frameworks to not actually install Git. It is used by default under
ChefSpec. It can also be used to manage the Git installation externally from
this cookbook.

poise_git_client 'git' do
  provider :dummy
  options git_binary: '/path/to/git'
end

Provider Options

  • git_binary – Path to the git executable. (default: /git)
  • git_environment – Hash of environment variables to use with this Git. (default: {})

Sponsors

Development sponsored by SAP.

The Poise test server infrastructure is sponsored by Rackspace.

License

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

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.

Poise-Git Changelog

v1.0.0

  • Initial release!

Collaborator Number Metric
            

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

1.0.0 passed this metric

No Binaries Metric
            

1.0.0 passed this metric

Testing File Metric
            

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

1.0.0 passed this metric