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

yum_repositories (2) Versions 0.1.1

Cookbook that wraps the yum_repository resource allowing one to define repositories in attributes.

Policyfile
Berkshelf
Knife
cookbook 'yum_repositories', '~> 0.1.1', :supermarket
cookbook 'yum_repositories', '~> 0.1.1'
knife supermarket install yum_repositories
knife supermarket download yum_repositories
README
Dependencies
Quality 33%

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