cookbook 'yum_repositories', '= 0.1.0'
yum_repositories (2) Versions 0.1.0 Follow2
Cookbook that wraps the yum_repository resource allowing one to define repositories in attributes.
cookbook 'yum_repositories', '= 0.1.0', :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" => [ "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": { "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.0 failed this metric
Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.
Foodcritic Metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
0.1.0 failed this metric
0.1.0 passed this metric
License Metric
0.1.0 passed this metric
0.1.0 passed this metric