The yum-elrepo cookbook takes over management of the default repositoryids used by elrepo. It allows attribute manipulation of elrepo
.
This cookbook is maintained by the Sous Chefs. The Sous Chefs are a community of Chef cookbook maintainers working together to maintain important cookbooks. If you’d like to know more please visit sous-chefs.org or come chat with us on the Chef Community Slack in #sous-chefs.
- RHEL/CentOS and derivatives
- Fedora
- Chef 12.14+
- none
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
- 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
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'
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'
This project exists thanks to all the people who contribute.
Thank you to all our backers!
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.