cookbook 'yum-fedora', '= 3.1.2'
yum-fedora
(20) Versions
3.1.2
-
Follow2
Installs and configures the Fedora Yum repositories
cookbook 'yum-fedora', '= 3.1.2', :supermarket
knife supermarket install yum-fedora
knife supermarket download yum-fedora
yum-fedora Cookbook
The yum-fedora cookbook takes over management of the default repositoryids that ship with Fedora systems. It allows attribute manipulation of fedora
, fedora-debuginfo
, fedora-source
, updates
, updates-debuginfo
, updates-source
, updates-testing
, updates-testing-debuginfo
, and updates-testing-source
Maintainers
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.
Requirements
Platforms
- Fedora
Chef
- Chef 12.14+
Cookbooks
- none
Attributes
The following attributes are set by default
default['yum']['fedora']['repositoryid'] = 'fedora' default['yum']['fedora']['description'] = 'Fedora $releasever - $basearch' default['yum']['fedora']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch' default['yum']['fedora']['enabled'] = true default['yum']['fedora']['managed'] = true default['yum']['fedora']['metadata_expire'] = '7d' default['yum']['fedora']['gpgcheck'] = true default['yum']['fedora']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['fedora-debuginfo']['repositoryid'] = 'fedora-debuginfo' default['yum']['fedora-debuginfo']['description'] = 'Fedora $releasever - $basearch - Debug' default['yum']['fedora-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=fedora-debug-$releasever&arch=$basearch' default['yum']['fedora-debuginfo']['enabled'] = false default['yum']['fedora-debuginfo']['managed'] = false default['yum']['fedora-debuginfo']['metadata_expire'] = '7d' default['yum']['fedora-debuginfo']['gpgcheck'] = true default['yum']['fedora-debuginfo']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['fedora-source']['repositoryid'] = 'fedora-source' default['yum']['fedora-source']['description'] = 'Fedora $releasever - Source' default['yum']['fedora-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=fedora-source-$releasever&arch=$basearch' default['yum']['fedora-source']['enabled'] = false default['yum']['fedora-source']['managed'] = false default['yum']['fedora-source']['metadata_expire'] = '7d' default['yum']['fedora-source']['gpgcheck'] = true default['yum']['fedora-source']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['updates']['repositoryid'] = 'updates' default['yum']['updates']['description'] = 'Fedora $releasever - $basearch - Updates' default['yum']['updates']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-f$releasever&arch=$basearch' default['yum']['updates']['enabled'] = true default['yum']['updates']['managed'] = true default['yum']['updates']['gpgcheck'] = true default['yum']['updates']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['updates-debuginfo']['repositoryid'] = 'updates-debuginfo' default['yum']['updates-debuginfo']['description'] = 'Fedora $releasever - $basearch - Updates - Debug' default['yum']['updates-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-debug-f$releasever&arch=$basearch' default['yum']['updates-debuginfo']['enabled'] = false default['yum']['updates-debuginfo']['managed'] = false default['yum']['updates-debuginfo']['gpgcheck'] = true default['yum']['updates-debuginfo']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['updates-source']['repositoryid'] = 'updates-source' default['yum']['updates-source']['description'] = 'Fedora $releasever - Updates Source' default['yum']['updates-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=updates-released-source-f$releasever&arch=$basearch' default['yum']['updates-source']['enabled'] = true default['yum']['updates-source']['gpgcheck'] = true default['yum']['updates-source']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['updates-testing']['repositoryid'] = 'updates-testing' default['yum']['updates-testing']['description'] = 'Fedora $releasever - $basearch - Test Updates' default['yum']['updates-testing']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=updates-testing-f$releasever&arch=$basearch' default['yum']['updates-testing']['enabled'] = false default['yum']['updates-testing']['managed'] = false default['yum']['updates-testing']['gpgcheck'] = true default['yum']['updates-testing']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['updates-testing-debuginfo']['repositoryid'] = 'updates-testing-debuginfo' default['yum']['updates-testing-debuginfo']['description'] = 'Fedora $releasever - $basearch - Test Updates Debug' default['yum']['updates-testing-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=updates-testing-debug-f$releasever&arch=$basearch' default['yum']['updates-testing-debuginfo']['enabled'] = false default['yum']['updates-testing-debuginfo']['managed'] = false default['yum']['updates-testing-debuginfo']['gpgcheck'] = true default['yum']['updates-testing-debuginfo']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
default['yum']['updates-testing-source']['repositoryid'] = 'updates-testing-source' default['yum']['updates-testing-source']['description'] = 'Fedora $releasever - Test Updates Source' default['yum']['updates-testing-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=updates-testing-source-f$releasever&arch=$basearch' default['yum']['updates-testing-source']['enabled'] = false default['yum']['updates-testing-source']['managed'] = false default['yum']['updates-testing-source']['gpgcheck'] = true default['yum']['updates-testing-source']['gpgkey'] = 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch'
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 'fedora' do mirrorlist 'https://mirrors.fedoraproject.org/metalink?repo=fedora-$releasever&arch=$basearch' description 'Fedora $releasever - $basearch' enabled true gpgcheck true gpgkey 'file:///etc/pki/rpm-gpg/RPM-GPG-KEY-fedora-$basearch' end
Usage Example
To disable the Fedora Updates repository through a Role or Environment definition
default_attributes( :yum => { :updates => { :enabled => { false } } } )
Uncommonly used repositoryids are not managed by default. This is speeds up integration testing pipelines by avoiding yum-cache builds that nobody cares about. To enable the Fedora Debuginfo repository with a wrapper cookbook, place the following in a recipe:
node.default['yum']['fedora-debuginfo']['managed'] = true node.default['yum']['fedora-debuginfo']['enabled'] = true include_recipe 'yum-fedora'
More Examples
Point the fedora and updates repositories at an internally hosted server.
node.default['yum']['fedora']['enabled'] = true node.default['yum']['fedora']['mirrorlist'] = nil node.default['yum']['fedora']['baseurl'] = 'https://internal.example.com/fedora/19/os/x86_64' node.default['yum']['fedora']['sslverify'] = false node.default['yum']['updates']['enabled'] = true node.default['yum']['updates']['mirrorlist'] = nil node.default['yum']['updates']['baseurl'] = 'https://internal.example.com/fedora/19/updates/x86_64' node.default['yum']['updates']['sslverify'] = false include_recipe 'yum-fedora'
Contributors
This project exists thanks to all the people who contribute.
Backers
Thank you to all our backers!
Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
Dependent cookbooks
This cookbook has no specified dependencies.
Contingent cookbooks
yum-fedora Cookbook CHANGELOG
This file is used to list changes made in each version of the yum-fedora cookbook.
3.1.2 - 2021-08-31
- Standardise files with files in sous-chefs/repo-management
3.1.1 - 2021-06-01
- Standardise files with files in sous-chefs/repo-management
3.1.0 - 2021-03-03
- Sous Chefs adoption
- Various style fixes
- Remove references to < Fedora 20
3.0.0 (2018-02-16)
- Require Chef 12.14+ and remove compat_resource dep
2.0.2 (2017-06-14)
- Switch from Rake testing to Local Delivery for testing
- Update apache2 license string to use a SPDX compliant string
2.0.1 (2016-12-22)
- Add integration testing with inspec
- Depend on the latest compat_resource cookbook
- Cookstyle fixes
2.0.0 (2016-11-26)
- Replace yum dependency with compat_resource
1.0.0 (2016-09-06)
- Testing updates
- Resolve rubocop warnings
- Add chef_version metadata
- Remove support for Chef 11
v0.3.4 (2015-11-30)
- Fix attributes with a value of false being skipped
v0.3.3 (2015-10-28)
- #4 Guard against conflicting name spaces with other platforms #4
v0.3.2 (2015-10-28)
- Fixing Chef 13 nil property deprecation warnings
v0.3.1 (2015-09-21)
- Increased the yum depencency from ~3.0 to ~3.2
- Added Chef standard Rubocop file and resolved all warnings
- Updated platforms in Kitchen CI config
- Add supported platforms to the metadata
- Added Chef standard chefignore and .gitignore files
- 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
- Added long_description to metadata
- Added source_url and issues_url to metadata
v0.3.0 (2014-09-02)
- 2 - Add all attribute available to LWRP to allow for tuning
v0.2.2 (2014-03-12)
- Correctly set gpgkey for Fedoras >= 20
v0.2.0 (2014-02-14)
- updating test harness
- disabling uncommonly used repositoryid by default
v0.1.4
- Adding CHANGELOG.md
v0.1.0
- initial release
Collaborator Number Metric
3.1.2 passed this metric
Contributing File Metric
3.1.2 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
3.1.2 passed this metric
No Binaries Metric
3.1.2 passed this metric
Testing File Metric
3.1.2 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
3.1.2 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 include a tag that matches this cookbook version number
3.1.2 passed this metric
3.1.2 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
3.1.2 passed this metric
No Binaries Metric
3.1.2 passed this metric
Testing File Metric
3.1.2 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
3.1.2 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 include a tag that matches this cookbook version number
3.1.2 passed this metric
3.1.2 passed this metric
Testing File Metric
3.1.2 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
3.1.2 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 include a tag that matches this cookbook version number
3.1.2 failed this metric
3.1.2 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 include a tag that matches this cookbook version number