cookbook 'repos', '~> 0.0.3', :supermarket
repos (3) Versions 0.0.3 Follow2
Installs/Configures package repositories
cookbook 'repos', '~> 0.0.3'
knife supermarket install repos
knife supermarket download repos
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 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.0.3 failed this 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 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.0.3 failed this metric
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 14.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
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
0.0.3 passed this 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
0.0.3 failed this metric
0.0.3 passed this metric