cookbook 'yum_repositories', '~> 0.1.1'
yum_repositories (2) Versions 0.1.1 Follow2
Cookbook that wraps the yum_repository resource allowing one to define repositories in attributes.
cookbook 'yum_repositories', '~> 0.1.1', :supermarket
knife supermarket install yum_repositories
knife supermarket download yum_repositories
Yum Repositories
Cookbook that wraps the yum_repository resource allowing one to define repositories in attributes.
Usage
yum_repositories::default
Just include yum_repositories
in your node's run_list
:
{ "name":"my_node", "run_list": [ "recipe[yum_repositories]" ] }
Then move on to filling out some attributes.
Attributes
Ignore Failures
This set the ignore_failures default value for each repo you define.
Default Value:
false
Ruby usage:
node['yum_repositories']['ignore_failures'] = true
JSON usage:
{ "yum_repositories": { "ignore_failures": true } }
Repositories
The set of repositories that you intend to manage.
Ruby usage:
node['yum_repositories']['repositories'] = [ "elastic-5.x" => [ "baseurl" => "https://artifacts.elastic.co/packages/5.x/yum", "gpgcheck" => true, "gpgkey" => "https://artifacts.elastic.co/GPG-KEY-elasticsearch", "enabled" => true, "action" => "create" ], "influxdb" => [ "name" => "InfluxDB", "ignore_failures" => false, # Overriding the global settings set earlier "baseurl" => "https://repos.influxdata.com/rhel/\\$releasever/\\$basearch/stable", "gpgcheck" => true, "gpgkey" => "https://repos.influxdata.com/influxdb.key", "enabled" => true, "action" => "create" ] ]
JSON usage:
{ "yum_repositories": { "repositories": { "elastic-5.x": { "baseurl": "https://artifacts.elastic.co/packages/5.x/yum", "gpgcheck": true, "gpgkey": "https://artifacts.elastic.co/GPG-KEY-elasticsearch", "enabled": true, "action": "create" }, "influxdb": { "name": "InfluxDB", "ignore_failures": false, "baseurl": "https://repos.influxdata.com/rhel/\\$releasever/\\$basearch/stable", "gpgcheck": true, "gpgkey": "https://repos.influxdata.com/influxdb.key", "enabled": true, "action": "create" } } } }
Each repository declaration you define wraps around the yum_repository
resource built into Chef. More information that resource can be found here.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
There are no cookbooks that are contingent upon this one.
Collaborator Number Metric
0.1.1 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Contributing File Metric
0.1.1 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.1.1 failed this metric
FC120: Do not set the name property directly on a resource: yum_repositories/recipes/default.rb:56
FC120: Do not set the name property directly on a resource: yum_repositories/recipes/default.rb:58
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1.1 passed this metric
0.1.1 failed this metric
0.1.1 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.1.1 failed this metric
FC120: Do not set the name property directly on a resource: yum_repositories/recipes/default.rb:56
FC120: Do not set the name property directly on a resource: yum_repositories/recipes/default.rb:58
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
No Binaries Metric
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1.1 passed this metric
0.1.1 failed this metric
FC120: Do not set the name property directly on a resource: yum_repositories/recipes/default.rb:58
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any
0.1.1 passed this metric
Testing File Metric
0.1.1 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.1.1 passed this metric
0.1.1 failed this metric
0.1.1 passed this metric