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

The yum-repoforge cookbook has been deprecated

Author provided reason for deprecation:

The yum-repoforge cookbook has been deprecated and is no longer being maintained by its authors. Use of the yum-repoforge cookbook is no longer recommended.


yum-repoforge (19) Versions 3.0.0

Installs and onfigures yum-repoforge aka RPMforge

cookbook 'yum-repoforge', '~> 3.0.0', :supermarket
cookbook 'yum-repoforge', '~> 3.0.0'
knife supermarket install yum-repoforge
knife supermarket download yum-repoforge
Quality 33%

yum-repoforge Cookbook

Build Status Cookbook Version

The RepoForge project maintains RPM packages for:

  • Red Hat Enterprise Linux (RHEL)
  • CentOS
  • Scientific Linux

The yum-repoforge cookbook takes over management of the default repositoryids used by repoforge. It allows attribute manipulation of rpmforge, rpmforge-extras, and rpmforge-testing



  • RHEL/CentOS and derivatives


  • Chef 12.14+


  • yum-epel


The following attributes are set by default

default['yum']['rpmforge']['repositoryid'] = 'rpmforge'
default['yum']['rpmforge']['description'] = 'RHEL $releasever - - dag'
default['yum']['rpmforge']['mirrorlist'] = "{node['platform_version'].to_i}/mirrors-rpmforge"
default['yum']['rpmforge']['enabled'] = true
default['yum']['rpmforge']['managed'] = true
default['yum']['rpmforge']['gpgcheck'] = true
default['yum']['rpmforge']['gpgkey'] = ''
default['yum']['rpmforge-extras']['repositoryid'] = 'rpmforge'
default['yum']['rpmforge-extras']['description'] = 'RHEL $releasever - - extras'
default['yum']['rpmforge-extras']['mirrorlist'] = "{node['platform_version'].to_i}/mirrors-rpmforge-extras"
default['yum']['rpmforge-extras']['enabled'] = true
default['yum']['rpmforge-extras']['managed'] = true
default['yum']['rpmforge-extras']['gpgcheck'] = true
default['yum']['rpmforge-extras']['gpgkey'] = ''
default['yum']['rpmforge-testing']['repositoryid'] = 'rpmforge-testing'
default['yum']['rpmforge-testing']['description'] = 'RHEL $releasever - - testing'
default['yum']['rpmforge-testing']['mirrorlist'] = "{node['platform_version'].to_i}/mirrors-rpmforge-testing"
default['yum']['rpmforge-testing']['enabled'] = true
default['yum']['rpmforge-testing']['managed'] = false
default['yum']['rpmforge-testing']['gpgcheck'] = true
default['yum']['rpmforge-testing']['gpgkey'] = ''


  • default - Walks through node attributes and feeds a yum_resource
  • parameters. The following is an example resource generated by the
  • recipe during compilation.
  yum_repository 'rpmforge' do
    mirrorlist ''
    description 'RHEL $releasever - - dag'
    enabled true
    gpgcheck true
    gpgkey ''

Usage Example

To disable the CentOS Extras repository through a Role or Environment definition

  :yum => {
    :rpmforge => {
      :enabled => {

To enable the rpmforge repository with a wrapper cookbook, place the following in a recipe:

node.default['yum']['rpmforge']['enabled'] = true
node.default['yum']['rpmforge']['managed'] = true

include_recipe 'yum-repoforge'

More Examples

Point the base and updates repositories at an internally hosted server.

node.default['yum']['rpmforge']['enabled'] = true
node.default['yum']['rpmforge']['mirrorlist'] = nil
node.default['yum']['rpmforge']['baseurl'] = ''
node.default['yum']['rpmforge']['sslverify'] = false
include_recipe 'yum-repoforge'

License & Authors

Author: Cookbook Engineering Team (

Copyright: 2011-2016, Chef Software, Inc.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
See the License for the specific language governing permissions and
limitations under the License.

yum-repoforge Cookbook CHANGELOG

This file is used to list changes made in each version of the yum-repoforge cookbook.

3.0.0 (2018-02-16)

  • Require Chef 12.14+ and remove compat_resource dep
  • Use a SPDX compliant license string
  • Resolve ChefSpec warnings

2.0.1 (2016-12-22)

  • Depend on the latest compat_resource cookbook
  • Cookstyle fixes

2.0.0 (2016-11-26)

  • Replace yum dependency with compat_resource
  • Use a working URL for the GPG key
  • Test with inspec

1.0.0 (2016-09-06)

  • Add chef_version to the metadata
  • Testing updates
  • Remove Chef 11 support

v0.7.1 (2016-08-18)

  • Fix support for Amazon 2016 releases
  • Remove bats integration testing

v0.7.0 (2016-04-27)

  • Add support for Amazon 2016 releases to the extras repo

v0.6.0 (2016-03-23)

  • Add support for the 2016 Amazon releases

v0.5.7 (2015-12-09)

  • Fixing minor typo: nil -> nil?

v0.5.6 (2015-12-09)

  • Adding unless nil checks to properties in recipe to avoid Chef 13 deprecation warnings


  • No changes... accidental release number mistake

v0.5.4 (2015-09-21)

  • Added Chef standard Rubocop file and resolved all warnings
  • Added Kitchen CI platforms
  • Add supported platforms to the metadata
  • Fixed the package install test bats file to pass
  • Added Chef standard chefignore and .gitignore files
  • Updated Berksfile to 3.X format
  • Updated and expanded development dependencies in the Gemfile
  • Added contributing, testing, and maintainers docs
  • Added platform requirements to the readme
  • Added Travis and cookbook version badges to the readme
  • Update Chefspec to 4.X format

v0.5.3 (2015-06-21)

  • Updating to depend on yum ~> 3.2

v0.5.2 (2015-06-21)

  • Support for EL7

v0.5.1 (2015-04-15)

  • Amazon Linux 2015.03

v0.5.0 (2014-01-07)

  • Adding centos-7 support

v0.4.0 (2014-09-02)

  • Add all attribute available to LWRP to allow for tuning

v0.3.0 (2014-06-11)

1 - Support for Amazon Linux 2014.03

v0.2.0 (2014-02-14)

  • Updating test harness




initial release

Collaborator Number Metric

3.0.0 failed this metric

Failure: Cookbook has 0 collaborators. A cookbook must have at least 2 collaborators to pass this metric.

Contributing File Metric

3.0.0 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, and your repo must contain a file

Cookstyle Metric

3.0.0 passed this metric

No Binaries Metric

3.0.0 passed this metric

Testing File Metric

3.0.0 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, and your repo must contain a file

Version Tag Metric

3.0.0 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, and your repo must include a tag that matches this cookbook version number