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

RSS

yum-elrepo (8) Versions 0.2.2

Installs and configures the elrepo yum repository

Berkshelf/Librarian
Policyfile
Knife
cookbook 'yum-elrepo', '= 0.2.2'
cookbook 'yum-elrepo', '= 0.2.2', :supermarket
knife cookbook site install yum-elrepo
knife cookbook site download yum-elrepo
README
Dependencies
Changelog
Quality

yum-elrepo Cookbook

The yum-elrepo cookbook takes over management of the default repositoryids used by elrepo. It allows attribute manipulation of elrepo.

Requirements

  • Chef 11 or higher
  • yum cookbook version 3.0.0 or higher

Attributes

The following attributes are set by default

default['yum']['elrepo']['baseurl'] = 'http://elrepo.org/mirrors-elrepo.el6'
default['yum']['elrepo']['baseurl'] = 'ELRepo.org Yum Repository'
default['yum']['elrepo']['gpgkey'] = 'http://elrepo.org/RPM-GPG-KEY-elrepo.org'
default['yum']['elrepo']['enabled'] = true

Recipes

  • default - Walks through node attributes and feeds a yum_resource parameters. The following is an example a resource generated by the recipe during compilation.
  yum_repository 'elrepo' do
    mirrorlist 'http://elrepo.org/mirrors-elrepo.el6'
    description 'ELRepo.org Yum Repository'
    enabled true
    gpgcheck true
    gpgkey 'http://elrepo.org/RPM-GPG-KEY-elrepo.org'
  end

Usage Example

To disable the elrepo repository through a Role or Environment definition

default_attributes(
  :yum => {
    :elrepo => {
      :enabled => {
        false
       }
     }
   }
 )

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

node.default['yum']['elrepo']['enabled'] = true
include_recipe 'yum-elrepo'

More Examples

Point the elrepo repositories at an internally hosted server.

node.default['yum']['elrepo']['enabled'] = true
node.default['yum']['elrepo']['baseurl'] = 'https://internal.example.com/elrepo'
node.default['yum']['elrepo']['sslverify'] = false

include_recipe 'yum-elrepo'

License & Authors

Copyright:: 2011-2013 Opscode, 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

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

Dependent cookbooks

yum ~> 3.0

Contingent cookbooks

drbd Applicable Versions

yum-elrepo Cookbook CHANGELOG

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

v0.2.2 (2015-06-21)

  • Add elrepo-testing and elpreo-extras repositories

v0.2.0 (2014-02-14)

Updating test harness

v0.1.4

Adding CHANGELOG.md

v0.1.0

initial release

Foodcritic Metric
            

0.2.2 failed this metric

FC031: Cookbook without metadata file: /tmp/cook/d9a955808eb057b43d279ad4/yum-elrepo/metadata.rb:1
FC045: Consider setting cookbook name in metadata: /tmp/cook/d9a955808eb057b43d279ad4/yum-elrepo/metadata.rb:1