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

repos (3) Versions 0.0.3

Installs/Configures package repositories

Berkshelf/Librarian
Policyfile
Knife
cookbook 'repos', '~> 0.0.3'
cookbook 'repos', '~> 0.0.3', :supermarket
knife cookbook site install repos
knife cookbook site download repos
README
Dependencies
Quality 56%

Description

Manages repositories for your platform. Currently only Debian-based distributions are supported.

Simple repository source can be described via node attributes. If you need more complicated setup you can use separate recipes, some are supplied with this cookbook.

Platform

  • Debian/Ubuntu

Attributes

  • node['repos'] - List of repositories to be activated by default recipe. Can be either recipe name to be included or attributes hash. The keys in each hash correspond to the attributes passed to the repository resource. Attribute 'type' defines which repository resource will be used, but only 'apt' is supported now.

Usage

If repository is defined in a separate recipe you may either add it directly to run_list, include from your wrapper-cookbook or use data-driven approach and enumerate desired repos in 'repos' attribute anywhere you want.

When you just need to add simple package source without additional actions like pinning, just add attribute hash describing repo in node["repos"] list.

Example use of run_list:

run_list("recipe[repos::percona]")

Example use of 'repos' attribute

run_list("recipe[repos]")
override_attributes( "repos" => ['jenkins-debian-glue', 'backports'] )

Example use of repo hash:

"repos" => ['jenkins-debian-glue',
  { 'type' => "apt",
    'name' => "nginx-1.2.6",
    'uri'  => "http://ci.clodo.ru/release/nginx-1.2.6",
    'distribution' => "nginx-1.2.6",
    'components' => ["main"]
  },
]

TODO

  • Databags support

Dependent cookbooks

apt >= 0.0.0

Contingent cookbooks

There are no cookbooks that are contingent upon this one.

Collaborator Number Metric
            

0.0.3 failed this metric

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

Contributing File Metric
            

0.0.3 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.0.3 failed this metric

FC064: Ensure issues_url is set in metadata: repos/metadata.rb:1
FC065: Ensure source_url is set in metadata: repos/metadata.rb:1
FC066: Ensure chef_version is set in metadata: repos/metadata.rb:1
FC069: Ensure standardized license defined in metadata: repos/metadata.rb:1
Run with Foodcritic Version 12.2.1 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

License Metric
            

0.0.3 passed this metric

No Binaries Metric
            

0.0.3 passed this metric

Publish Metric
            

0.0.3 passed this metric

Supported Platforms Metric
            

0.0.3 passed this metric

Testing File Metric
            

0.0.3 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.0.3 passed this metric