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.0

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

Policyfile
Berkshelf
Knife
cookbook 'yum_repositories', '= 0.1.0', :supermarket
cookbook 'yum_repositories', '= 0.1.0'
knife supermarket install yum_repositories
knife supermarket download yum_repositories
README
Dependencies
Quality 67%

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