Update golang cookbook
This commit is contained in:
@@ -2,6 +2,61 @@
|
||||
|
||||
This file is used to list changes made in each version of the yum-epel cookbook.
|
||||
|
||||
## 4.2.3 - *2021-11-03*
|
||||
|
||||
- Rename helper method to `epel_8_repos` to not conflict with yum-centos
|
||||
|
||||
## 4.2.2 - *2021-11-02*
|
||||
|
||||
- Update documentation for epel on CentOS Stream
|
||||
|
||||
## 4.2.1 - *2021-11-02*
|
||||
|
||||
- Add epel and epel-debuginfo repos by default for CentOS Streams
|
||||
|
||||
## 4.2.0 - *2021-11-02*
|
||||
|
||||
- Add support for CentOS Stream 8
|
||||
|
||||
## 4.1.4 - *2021-08-30*
|
||||
|
||||
- Standardise files with files in sous-chefs/repo-management
|
||||
|
||||
## 4.1.3 - *2021-07-14*
|
||||
|
||||
- Remove deprecated `failoverprorioty` setting
|
||||
|
||||
## 4.1.2 - *2021-06-01*
|
||||
|
||||
- Standardise files with files in sous-chefs/repo-management
|
||||
|
||||
## 4.1.1 - *2021-01-24*
|
||||
|
||||
- Fix support for Oracle Linux
|
||||
|
||||
## 4.1.0 - *2021-01-14*
|
||||
|
||||
- Sous Chefs Adoption
|
||||
|
||||
## 4.0.1 (2021-01-04)
|
||||
|
||||
- Return empty array on non-yum systems - [@ramereth](https://github.com/ramereth)
|
||||
|
||||
## 4.0.0 (2020-12-15)
|
||||
|
||||
- Cookstyle fixes - [@tas50](https://github.com/tas50)
|
||||
- Switch all http URLs to HTTPS URLs - [@damacus](https://github.com/damacus)
|
||||
- Switch gpgkey urls - [@knightorc](https://github.com/knightorc)
|
||||
- Require Chef 12.15+ - [@tas50](https://github.com/tas50)
|
||||
- Remove CentOS 6 / Amazon Linux 201X support/testing - [@ramereth](https://github.com/ramereth)
|
||||
- Improve InSpec test by using yum.repo resource - [@ramereth](https://github.com/ramereth)
|
||||
- Fix repo descriptions on Amazon Linux - [@ramereth](https://github.com/ramereth)
|
||||
- Test all supported repos in new "all" suite - [@ramereth](https://github.com/ramereth)
|
||||
- Ensure other epel repos are not enabled in default suite - [@ramereth](https://github.com/ramereth)
|
||||
- Add various modular and playground repos for EL8 - [@ramereth](https://github.com/ramereth)
|
||||
- Update README - [@ramereth](https://github.com/ramereth)
|
||||
- Cleanup metadata.rb formatting - [@ramereth](https://github.com/ramereth)
|
||||
|
||||
## 3.3.0 (2018-10-09)
|
||||
|
||||
- Fix cookbook to work on all releases of Amazon Linux 2
|
||||
|
||||
@@ -1,2 +0,0 @@
|
||||
Please refer to
|
||||
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD
|
||||
202
cookbooks/yum-epel/LICENSE
Normal file
202
cookbooks/yum-epel/LICENSE
Normal file
@@ -0,0 +1,202 @@
|
||||
Apache License
|
||||
Version 2.0, January 2004
|
||||
http://www.apache.org/licenses/
|
||||
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
|
||||
1. Definitions.
|
||||
|
||||
"License" shall mean the terms and conditions for use, reproduction,
|
||||
and distribution as defined by Sections 1 through 9 of this document.
|
||||
|
||||
"Licensor" shall mean the copyright owner or entity authorized by
|
||||
the copyright owner that is granting the License.
|
||||
|
||||
"Legal Entity" shall mean the union of the acting entity and all
|
||||
other entities that control, are controlled by, or are under common
|
||||
control with that entity. For the purposes of this definition,
|
||||
"control" means (i) the power, direct or indirect, to cause the
|
||||
direction or management of such entity, whether by contract or
|
||||
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
||||
outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
|
||||
"You" (or "Your") shall mean an individual or Legal Entity
|
||||
exercising permissions granted by this License.
|
||||
|
||||
"Source" form shall mean the preferred form for making modifications,
|
||||
including but not limited to software source code, documentation
|
||||
source, and configuration files.
|
||||
|
||||
"Object" form shall mean any form resulting from mechanical
|
||||
transformation or translation of a Source form, including but
|
||||
not limited to compiled object code, generated documentation,
|
||||
and conversions to other media types.
|
||||
|
||||
"Work" shall mean the work of authorship, whether in Source or
|
||||
Object form, made available under the License, as indicated by a
|
||||
copyright notice that is included in or attached to the work
|
||||
(an example is provided in the Appendix below).
|
||||
|
||||
"Derivative Works" shall mean any work, whether in Source or Object
|
||||
form, that is based on (or derived from) the Work and for which the
|
||||
editorial revisions, annotations, elaborations, or other modifications
|
||||
represent, as a whole, an original work of authorship. For the purposes
|
||||
of this License, Derivative Works shall not include works that remain
|
||||
separable from, or merely link (or bind by name) to the interfaces of,
|
||||
the Work and Derivative Works thereof.
|
||||
|
||||
"Contribution" shall mean any work of authorship, including
|
||||
the original version of the Work and any modifications or additions
|
||||
to that Work or Derivative Works thereof, that is intentionally
|
||||
submitted to Licensor for inclusion in the Work by the copyright owner
|
||||
or by an individual or Legal Entity authorized to submit on behalf of
|
||||
the copyright owner. For the purposes of this definition, "submitted"
|
||||
means any form of electronic, verbal, or written communication sent
|
||||
to the Licensor or its representatives, including but not limited to
|
||||
communication on electronic mailing lists, source code control systems,
|
||||
and issue tracking systems that are managed by, or on behalf of, the
|
||||
Licensor for the purpose of discussing and improving the Work, but
|
||||
excluding communication that is conspicuously marked or otherwise
|
||||
designated in writing by the copyright owner as "Not a Contribution."
|
||||
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity
|
||||
on behalf of whom a Contribution has been received by Licensor and
|
||||
subsequently incorporated within the Work.
|
||||
|
||||
2. Grant of Copyright License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
copyright license to reproduce, prepare Derivative Works of,
|
||||
publicly display, publicly perform, sublicense, and distribute the
|
||||
Work and such Derivative Works in Source or Object form.
|
||||
|
||||
3. Grant of Patent License. Subject to the terms and conditions of
|
||||
this License, each Contributor hereby grants to You a perpetual,
|
||||
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
||||
(except as stated in this section) patent license to make, have made,
|
||||
use, offer to sell, sell, import, and otherwise transfer the Work,
|
||||
where such license applies only to those patent claims licensable
|
||||
by such Contributor that are necessarily infringed by their
|
||||
Contribution(s) alone or by combination of their Contribution(s)
|
||||
with the Work to which such Contribution(s) was submitted. If You
|
||||
institute patent litigation against any entity (including a
|
||||
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
||||
or a Contribution incorporated within the Work constitutes direct
|
||||
or contributory patent infringement, then any patent licenses
|
||||
granted to You under this License for that Work shall terminate
|
||||
as of the date such litigation is filed.
|
||||
|
||||
4. Redistribution. You may reproduce and distribute copies of the
|
||||
Work or Derivative Works thereof in any medium, with or without
|
||||
modifications, and in Source or Object form, provided that You
|
||||
meet the following conditions:
|
||||
|
||||
(a) You must give any other recipients of the Work or
|
||||
Derivative Works a copy of this License; and
|
||||
|
||||
(b) You must cause any modified files to carry prominent notices
|
||||
stating that You changed the files; and
|
||||
|
||||
(c) You must retain, in the Source form of any Derivative Works
|
||||
that You distribute, all copyright, patent, trademark, and
|
||||
attribution notices from the Source form of the Work,
|
||||
excluding those notices that do not pertain to any part of
|
||||
the Derivative Works; and
|
||||
|
||||
(d) If the Work includes a "NOTICE" text file as part of its
|
||||
distribution, then any Derivative Works that You distribute must
|
||||
include a readable copy of the attribution notices contained
|
||||
within such NOTICE file, excluding those notices that do not
|
||||
pertain to any part of the Derivative Works, in at least one
|
||||
of the following places: within a NOTICE text file distributed
|
||||
as part of the Derivative Works; within the Source form or
|
||||
documentation, if provided along with the Derivative Works; or,
|
||||
within a display generated by the Derivative Works, if and
|
||||
wherever such third-party notices normally appear. The contents
|
||||
of the NOTICE file are for informational purposes only and
|
||||
do not modify the License. You may add Your own attribution
|
||||
notices within Derivative Works that You distribute, alongside
|
||||
or as an addendum to the NOTICE text from the Work, provided
|
||||
that such additional attribution notices cannot be construed
|
||||
as modifying the License.
|
||||
|
||||
You may add Your own copyright statement to Your modifications and
|
||||
may provide additional or different license terms and conditions
|
||||
for use, reproduction, or distribution of Your modifications, or
|
||||
for any such Derivative Works as a whole, provided Your use,
|
||||
reproduction, and distribution of the Work otherwise complies with
|
||||
the conditions stated in this License.
|
||||
|
||||
5. Submission of Contributions. Unless You explicitly state otherwise,
|
||||
any Contribution intentionally submitted for inclusion in the Work
|
||||
by You to the Licensor shall be under the terms and conditions of
|
||||
this License, without any additional terms or conditions.
|
||||
Notwithstanding the above, nothing herein shall supersede or modify
|
||||
the terms of any separate license agreement you may have executed
|
||||
with Licensor regarding such Contributions.
|
||||
|
||||
6. Trademarks. This License does not grant permission to use the trade
|
||||
names, trademarks, service marks, or product names of the Licensor,
|
||||
except as required for reasonable and customary use in describing the
|
||||
origin of the Work and reproducing the content of the NOTICE file.
|
||||
|
||||
7. Disclaimer of Warranty. Unless required by applicable law or
|
||||
agreed to in writing, Licensor provides the Work (and each
|
||||
Contributor provides its Contributions) on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
||||
implied, including, without limitation, any warranties or conditions
|
||||
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
||||
PARTICULAR PURPOSE. You are solely responsible for determining the
|
||||
appropriateness of using or redistributing the Work and assume any
|
||||
risks associated with Your exercise of permissions under this License.
|
||||
|
||||
8. Limitation of Liability. In no event and under no legal theory,
|
||||
whether in tort (including negligence), contract, or otherwise,
|
||||
unless required by applicable law (such as deliberate and grossly
|
||||
negligent acts) or agreed to in writing, shall any Contributor be
|
||||
liable to You for damages, including any direct, indirect, special,
|
||||
incidental, or consequential damages of any character arising as a
|
||||
result of this License or out of the use or inability to use the
|
||||
Work (including but not limited to damages for loss of goodwill,
|
||||
work stoppage, computer failure or malfunction, or any and all
|
||||
other commercial damages or losses), even if such Contributor
|
||||
has been advised of the possibility of such damages.
|
||||
|
||||
9. Accepting Warranty or Additional Liability. While redistributing
|
||||
the Work or Derivative Works thereof, You may choose to offer,
|
||||
and charge a fee for, acceptance of support, warranty, indemnity,
|
||||
or other liability obligations and/or rights consistent with this
|
||||
License. However, in accepting such obligations, You may act only
|
||||
on Your own behalf and on Your sole responsibility, not on behalf
|
||||
of any other Contributor, and only if You agree to indemnify,
|
||||
defend, and hold each Contributor harmless for any liability
|
||||
incurred by, or claims asserted against, such Contributor by reason
|
||||
of your accepting any such warranty or additional liability.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
APPENDIX: How to apply the Apache License to your work.
|
||||
|
||||
To apply the Apache License to your work, attach the following
|
||||
boilerplate notice, with the fields enclosed by brackets "{}"
|
||||
replaced with your own identifying information. (Don't include
|
||||
the brackets!) The text should be enclosed in the appropriate
|
||||
comment syntax for the file format. We also recommend that a
|
||||
file or class name and description of purpose be included on the
|
||||
same "printed page" as the copyright notice for easier
|
||||
identification within third-party archives.
|
||||
|
||||
Copyright {yyyy} {name of copyright owner}
|
||||
|
||||
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.
|
||||
|
||||
@@ -1,10 +1,40 @@
|
||||
# yum-epel Cookbook
|
||||
|
||||
[](http://travis-ci.org/chef-cookbooks/yum-epel) [](https://supermarket.chef.io/cookbooks/yum-epel)
|
||||
[](https://supermarket.chef.io/cookbooks/yum-epel)
|
||||
[](https://github.com/sous-chefs/yum-epel/actions?query=workflow%3Aci)
|
||||
[](#backers)
|
||||
[](#sponsors)
|
||||
[](https://opensource.org/licenses/Apache-2.0)
|
||||
|
||||
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS and Scientific Linux (SL), Oracle Linux (OL).
|
||||
Extra Packages for Enterprise Linux (or EPEL) is a Fedora Special Interest Group that creates, maintains, and manages a high quality set of additional packages for Enterprise Linux, including, but not limited to, Red Hat Enterprise Linux (RHEL), CentOS , CentOS Stream and Scientific Linux (SL), Oracle Linux (OL).
|
||||
|
||||
The yum-epel cookbook takes over management of the default repositoryids shipped with epel-release. It allows attribute manipulation of `epel`, `epel-debuginfo`, `epel-source`, `epel-testing`, `epel-testing-debuginfo`, and `epel-testing-source`.
|
||||
The yum-epel cookbook takes over management of the default repositoryids shipped with epel-release.
|
||||
|
||||
Below is a table showing which repositoryids we manage that are shipped by default via the epel-release package:
|
||||
|
||||
| Repo ID | EL 7 | EL 8 | CentOS Stream 8 |
|
||||
| ------------------------------ | :--------------: | :--------------: | :--------------: |
|
||||
| epel |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-debuginfo |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-modular | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-modular-debuginfo | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-modular-source | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-next | :x: | :x: |:heavy_check_mark:|
|
||||
| epel-next-debuginfo | :x: | :x: |:heavy_check_mark:|
|
||||
| epel-next-source | :x: | :x: |:heavy_check_mark:|
|
||||
| epel-next-testing | :x: | :x: |:heavy_check_mark:|
|
||||
| epel-next-testing-debug | :x: | :x: |:heavy_check_mark:|
|
||||
| epel-next-testing-source | :x: | :x: |:heavy_check_mark:|
|
||||
| epel-playground | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-playground-debuginfo | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-playground-source | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-source |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-testing |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-testing-debuginfo |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-testing-modular | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-testing-modular-debuginfo | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-testing-modular-source | :x: |:heavy_check_mark:|:heavy_check_mark:|
|
||||
| epel-testing-source |:heavy_check_mark:|:heavy_check_mark:|:heavy_check_mark:|
|
||||
|
||||
## Requirements
|
||||
|
||||
@@ -14,7 +44,11 @@ The yum-epel cookbook takes over management of the default repositoryids shipped
|
||||
|
||||
### Chef
|
||||
|
||||
- Chef 12.14+
|
||||
- Chef 12.15+
|
||||
|
||||
## 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](https://sous-chefs.org/) or come chat with us on the Chef Community Slack in [#sous-chefs](https://chefcommunity.slack.com/messages/C2V7B88SF).
|
||||
|
||||
### Cookbooks
|
||||
|
||||
@@ -22,100 +56,11 @@ The yum-epel cookbook takes over management of the default repositoryids shipped
|
||||
|
||||
## Attributes
|
||||
|
||||
The following attributes are set by default
|
||||
|
||||
```ruby
|
||||
default['yum-epel']['repos'] = %w(
|
||||
epel
|
||||
epel-debuginfo
|
||||
epel-source
|
||||
epel-testing
|
||||
epel-testing-debuginfo
|
||||
epel-testing-source
|
||||
)
|
||||
```
|
||||
|
||||
```ruby
|
||||
default['yum']['epel']['repositoryid'] = 'epel'
|
||||
default['yum']['epel']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch'
|
||||
default['yum']['epel']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch'
|
||||
default['yum']['epel']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
default['yum']['epel']['failovermethod'] = 'priority'
|
||||
default['yum']['epel']['gpgcheck'] = true
|
||||
default['yum']['epel']['enabled'] = true
|
||||
default['yum']['epel']['managed'] = true
|
||||
```
|
||||
|
||||
```ruby
|
||||
default['yum']['epel-debuginfo']['repositoryid'] = 'epel-debuginfo'
|
||||
default['yum']['epel-debuginfo']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch - Debug'
|
||||
default['yum']['epel-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=epel-debug-6&arch=$basearch'
|
||||
default['yum']['epel-debuginfo']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
default['yum']['epel-debuginfo']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-debuginfo']['managed'] = false
|
||||
```
|
||||
|
||||
```ruby
|
||||
default['yum']['epel-source']['repositoryid'] = 'epel-source'
|
||||
default['yum']['epel-source']['description'] = 'Extra Packages for Enterprise Linux 6 - $basearch - Source'
|
||||
default['yum']['epel-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-6&arch=$basearch'
|
||||
default['yum']['epel-source']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
default['yum']['epel-source']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-source']['gpgcheck'] = true
|
||||
default['yum']['epel-source']['enabled'] = false
|
||||
default['yum']['epel-source']['managed'] = false
|
||||
```
|
||||
|
||||
```ruby
|
||||
default['yum']['epel-testing']['repositoryid'] = 'epel-testing'
|
||||
default['yum']['epel-testing']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch'
|
||||
default['yum']['epel-testing']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-epel6&arch=$basearch'
|
||||
default['yum']['epel-testing']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6r'
|
||||
default['yum']['epel-testing']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-testing']['gpgcheck'] = true
|
||||
default['yum']['epel-testing']['enabled'] = false
|
||||
default['yum']['epel-testing']['managed'] = false
|
||||
```
|
||||
|
||||
```ruby
|
||||
default['yum']['epel-testing-debuginfo']['repositoryid'] = 'epel-testing-debuginfo'
|
||||
default['yum']['epel-testing-debuginfo']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch Debug'
|
||||
default['yum']['epel-testing-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-debug-epel6&arch=$basearch'
|
||||
default['yum']['epel-testing-debuginfo']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
default['yum']['epel-testing-debuginfo']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-testing-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-testing-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-testing-debuginfo']['managed'] = false
|
||||
```
|
||||
|
||||
```ruby
|
||||
default['yum']['epel-testing-source']['repositoryid'] = 'epel-testing-source'
|
||||
default['yum']['epel-testing-source']['description'] = 'Extra Packages for Enterprise Linux 6 - Testing - $basearch Source'
|
||||
default['yum']['epel-testing-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-source-epel6&arch=$basearch'
|
||||
default['yum']['epel-testing-source']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
default['yum']['epel-testing-source']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-testing-source']['gpgcheck'] = true
|
||||
default['yum']['epel-testing-source']['enabled'] = false
|
||||
default['yum']['epel-testing-source']['managed'] = false
|
||||
```
|
||||
See individual repository attribute files for defaults.
|
||||
|
||||
## 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.
|
||||
|
||||
```ruby
|
||||
yum_repository 'epel' do
|
||||
mirrorlist 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-5&arch=$basearch'
|
||||
description 'Extra Packages for Enterprise Linux 5 - $basearch'
|
||||
enabled true
|
||||
gpgcheck true
|
||||
gpgkey 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL'
|
||||
end
|
||||
```
|
||||
- `yum-epel::default` Generates `yum_repository` configs for the standard EPEL repositories. By default the `epel` repository is enabled. For CentOS Stream, the [epel-next](https://docs.fedoraproject.org/en-US/epel/#what_is_epel_next) repository is also enabled.
|
||||
|
||||
## Usage Example
|
||||
|
||||
@@ -148,28 +93,33 @@ Point the epel repositories at an internally hosted server.
|
||||
```ruby
|
||||
node.default['yum']['epel']['enabled'] = true
|
||||
node.default['yum']['epel']['mirrorlist'] = nil
|
||||
node.default['yum']['epel']['baseurl'] = 'https://internal.example.com/centos/6/os/x86_64'
|
||||
node.default['yum']['epel']['baseurl'] = 'https://internal.example.com/centos/7/os/x86_64'
|
||||
node.default['yum']['epel']['sslverify'] = false
|
||||
|
||||
include_recipe 'yum-epel'
|
||||
```
|
||||
|
||||
## License & Authors
|
||||
## Contributors
|
||||
|
||||
**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))
|
||||
This project exists thanks to all the people who [contribute.](https://opencollective.com/sous-chefs/contributors.svg?width=890&button=false)
|
||||
|
||||
**Copyright:** 2011-2016, Chef Software, Inc.
|
||||
### Backers
|
||||
|
||||
```
|
||||
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
|
||||
Thank you to all our backers!
|
||||
|
||||
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.
|
||||
```
|
||||
### Sponsors
|
||||
|
||||
Support this project by becoming a sponsor. Your logo will show up here with a link to your website.
|
||||
|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||

|
||||
|
||||
@@ -1,8 +1,28 @@
|
||||
default['yum-epel']['repos'] = %w(
|
||||
epel
|
||||
epel-debuginfo
|
||||
epel-source
|
||||
epel-testing
|
||||
epel-testing-debuginfo
|
||||
epel-testing-source
|
||||
)
|
||||
default['yum-epel']['repos'] =
|
||||
value_for_platform(
|
||||
%w(redhat centos oracle) => {
|
||||
'>= 8.0' => epel_8_repos,
|
||||
'~> 7.0' =>
|
||||
%w(
|
||||
epel
|
||||
epel-debuginfo
|
||||
epel-source
|
||||
epel-testing
|
||||
epel-testing-debuginfo
|
||||
epel-testing-source
|
||||
),
|
||||
},
|
||||
'amazon' => {
|
||||
'default' =>
|
||||
%w(
|
||||
epel
|
||||
epel-debuginfo
|
||||
epel-source
|
||||
epel-testing
|
||||
epel-testing-debuginfo
|
||||
epel-testing-source
|
||||
),
|
||||
},
|
||||
# No-op on non-yum systems
|
||||
'default' => []
|
||||
)
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
default['yum']['epel-debuginfo']['repositoryid'] = 'epel-debuginfo'
|
||||
default['yum']['epel-debuginfo']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Debug"
|
||||
|
||||
if platform?('amazon')
|
||||
if node['platform_version'].to_i > 2010
|
||||
default['yum']['epel-debuginfo']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-6&arch=$basearch'
|
||||
default['yum']['epel-debuginfo']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
else
|
||||
default['yum']['epel-debuginfo']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-7&arch=$basearch'
|
||||
default['yum']['epel-debuginfo']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
end
|
||||
default['yum']['epel-debuginfo']['description'] = 'Extra Packages for 7 - $basearch - Debug'
|
||||
default['yum']['epel-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-7&arch=$basearch'
|
||||
default['yum']['epel-debuginfo']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
else
|
||||
default['yum']['epel-debuginfo']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-debuginfo']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Debug"
|
||||
default['yum']['epel-debuginfo']['mirrorlist'] = "https://mirrors.fedoraproject.org/mirrorlist?repo=epel-debug-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-debuginfo']['gpgkey'] = "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
end
|
||||
default['yum']['epel-debuginfo']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-debuginfo']['managed'] = false
|
||||
|
||||
8
cookbooks/yum-epel/attributes/epel-modular-debuginfo.rb
Normal file
8
cookbooks/yum-epel/attributes/epel-modular-debuginfo.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-modular-debuginfo']['repositoryid'] = 'epel-modular-debuginfo'
|
||||
default['yum']['epel-modular-debuginfo']['description'] = 'Extra Packages for Enterprise Linux Modular $releasever - $basearch - Debug'
|
||||
default['yum']['epel-modular-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=epel-modular-debug-$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-modular-debuginfo']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-modular-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-modular-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-modular-debuginfo']['managed'] = false
|
||||
default['yum']['epel-modular-debuginfo']['make_cache'] = true
|
||||
8
cookbooks/yum-epel/attributes/epel-modular-source.rb
Normal file
8
cookbooks/yum-epel/attributes/epel-modular-source.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-modular-source']['repositoryid'] = 'epel-modular-source'
|
||||
default['yum']['epel-modular-source']['description'] = 'Extra Packages for Enterprise Linux Modular $releasever - $basearch - Source'
|
||||
default['yum']['epel-modular-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=epel-modular-source-$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-modular-source']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-modular-source']['gpgcheck'] = true
|
||||
default['yum']['epel-modular-source']['enabled'] = false
|
||||
default['yum']['epel-modular-source']['managed'] = false
|
||||
default['yum']['epel-modular-source']['make_cache'] = true
|
||||
8
cookbooks/yum-epel/attributes/epel-modular.rb
Normal file
8
cookbooks/yum-epel/attributes/epel-modular.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-modular']['repositoryid'] = 'epel-modular'
|
||||
default['yum']['epel-modular']['description'] = 'Extra Packages for Enterprise Linux Modular $releasever - $basearch'
|
||||
default['yum']['epel-modular']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=epel-modular-$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-modular']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-modular']['gpgcheck'] = true
|
||||
default['yum']['epel-modular']['enabled'] = false
|
||||
default['yum']['epel-modular']['managed'] = false
|
||||
default['yum']['epel-modular']['make_cache'] = true
|
||||
11
cookbooks/yum-epel/attributes/epel-next-debuginfo.rb
Normal file
11
cookbooks/yum-epel/attributes/epel-next-debuginfo.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
default['yum']['epel-next-debuginfo']['repositoryid'] = 'epel-next-debuginfo'
|
||||
default['yum']['epel-next-debuginfo']['description'] =
|
||||
"Extra Packages for #{node['platform_version'].to_i} - $basearch - Next - Debug"
|
||||
default['yum']['epel-next-debuginfo']['mirrorlist'] =
|
||||
"https://mirrors.fedoraproject.org/mirrorlist?repo=epel-next-debug-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-next-debuginfo']['gpgkey'] =
|
||||
"https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
default['yum']['epel-next-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-next-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-next-debuginfo']['managed'] = false
|
||||
default['yum']['epel-next-debuginfo']['make_cache'] = true
|
||||
11
cookbooks/yum-epel/attributes/epel-next-source.rb
Normal file
11
cookbooks/yum-epel/attributes/epel-next-source.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
default['yum']['epel-next-source']['repositoryid'] = 'epel-next-source'
|
||||
default['yum']['epel-next-source']['description'] =
|
||||
"Extra Packages for #{node['platform_version'].to_i} $basearch - Next -Source"
|
||||
default['yum']['epel-next-source']['mirrorlist'] =
|
||||
"https://mirrors.fedoraproject.org/mirrorlist?repo=epel-next-source-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-next-source']['gpgkey'] =
|
||||
"https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
default['yum']['epel-next-source']['gpgcheck'] = true
|
||||
default['yum']['epel-next-source']['enabled'] = false
|
||||
default['yum']['epel-next-source']['managed'] = false
|
||||
default['yum']['epel-next-source']['make_cache'] = true
|
||||
11
cookbooks/yum-epel/attributes/epel-next-testing-debuginfo.rb
Normal file
11
cookbooks/yum-epel/attributes/epel-next-testing-debuginfo.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
default['yum']['epel-next-testing-debuginfo']['repositoryid'] = 'epel-next-testing-debuginfo'
|
||||
default['yum']['epel-next-testing-debuginfo']['description'] =
|
||||
"Extra Packages for #{node['platform_version'].to_i} - $basearch - Next - Testing Debug"
|
||||
default['yum']['epel-next-testing-debuginfo']['mirrorlist'] =
|
||||
"https://mirrors.fedoraproject.org/mirrorlist?repo=epel-testing-next-debug-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-next-testing-debuginfo']['gpgkey'] =
|
||||
"https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
default['yum']['epel-next-testing-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-next-testing-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-next-testing-debuginfo']['managed'] = false
|
||||
default['yum']['epel-next-testing-debuginfo']['make_cache'] = true
|
||||
11
cookbooks/yum-epel/attributes/epel-next-testing-source.rb
Normal file
11
cookbooks/yum-epel/attributes/epel-next-testing-source.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
default['yum']['epel-next-testing-source']['repositoryid'] = 'epel-next-testing-source'
|
||||
default['yum']['epel-next-testing-source']['description'] =
|
||||
"Extra Packages for #{node['platform_version'].to_i} - $basearch - Next - Testing Source"
|
||||
default['yum']['epel-next-testing-source']['mirrorlist'] =
|
||||
"https://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-next-testing-source']['gpgkey'] =
|
||||
"https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
default['yum']['epel-next-testing-source']['gpgcheck'] = true
|
||||
default['yum']['epel-next-testing-source']['enabled'] = false
|
||||
default['yum']['epel-next-testing-source']['managed'] = false
|
||||
default['yum']['epel-next-testing-source']['make_cache'] = true
|
||||
11
cookbooks/yum-epel/attributes/epel-next-testing.rb
Normal file
11
cookbooks/yum-epel/attributes/epel-next-testing.rb
Normal file
@@ -0,0 +1,11 @@
|
||||
default['yum']['epel-next-testing']['repositoryid'] = 'epel-next-testing'
|
||||
default['yum']['epel-next-testing']['description'] =
|
||||
"Extra Packages for #{node['platform_version'].to_i} - $basearch - Next - Testing"
|
||||
default['yum']['epel-next-testing']['mirrorlist'] =
|
||||
"https://mirrors.fedoraproject.org/mirrorlist?repo=epel-testing-next-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-next-testing']['gpgkey'] =
|
||||
"https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
default['yum']['epel-next-testing']['gpgcheck'] = true
|
||||
default['yum']['epel-next-testing']['enabled'] = false
|
||||
default['yum']['epel-next-testing']['managed'] = false
|
||||
default['yum']['epel-next-testing']['make_cache'] = true
|
||||
10
cookbooks/yum-epel/attributes/epel-next.rb
Normal file
10
cookbooks/yum-epel/attributes/epel-next.rb
Normal file
@@ -0,0 +1,10 @@
|
||||
default['yum']['epel-next']['repositoryid'] = 'epel-next'
|
||||
default['yum']['epel-next']['gpgcheck'] = true
|
||||
default['yum']['epel-next']['description'] = 'Extra Packages for $releasever - Next - $basearch'
|
||||
default['yum']['epel-next']['mirrorlist'] =
|
||||
"https://mirrors.fedoraproject.org/mirrorlist?repo=epel-next-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-next']['gpgkey'] =
|
||||
"https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
default['yum']['epel-next']['enabled'] = true
|
||||
default['yum']['epel-next']['managed'] = true
|
||||
default['yum']['epel-next']['make_cache'] = true
|
||||
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-playground-debuginfo']['repositoryid'] = 'epel-playground-debuginfo'
|
||||
default['yum']['epel-playground-debuginfo']['description'] = 'Extra Packages for Enterprise Linux $releasever - Playground - $basearch - Debug'
|
||||
default['yum']['epel-playground-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=playground-debug-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-playground-debuginfo']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-playground-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-playground-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-playground-debuginfo']['managed'] = false
|
||||
default['yum']['epel-playground-debuginfo']['make_cache'] = true
|
||||
8
cookbooks/yum-epel/attributes/epel-playground-source.rb
Normal file
8
cookbooks/yum-epel/attributes/epel-playground-source.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-playground-source']['repositoryid'] = 'epel-playground-source'
|
||||
default['yum']['epel-playground-source']['description'] = 'Extra Packages for Enterprise Linux $releasever - Playground - $basearch - Source'
|
||||
default['yum']['epel-playground-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=playground-source-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-playground-source']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-playground-source']['gpgcheck'] = true
|
||||
default['yum']['epel-playground-source']['enabled'] = false
|
||||
default['yum']['epel-playground-source']['managed'] = false
|
||||
default['yum']['epel-playground-source']['make_cache'] = true
|
||||
8
cookbooks/yum-epel/attributes/epel-playground.rb
Normal file
8
cookbooks/yum-epel/attributes/epel-playground.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-playground']['repositoryid'] = 'epel-playground'
|
||||
default['yum']['epel-playground']['description'] = 'Extra Packages for Enterprise Linux $releasever - Playground - $basearch'
|
||||
default['yum']['epel-playground']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=playground-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-playground']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-playground']['gpgcheck'] = true
|
||||
default['yum']['epel-playground']['enabled'] = false
|
||||
default['yum']['epel-playground']['managed'] = false
|
||||
default['yum']['epel-playground']['make_cache'] = true
|
||||
@@ -1,19 +1,14 @@
|
||||
default['yum']['epel-source']['repositoryid'] = 'epel-source'
|
||||
default['yum']['epel-source']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Source"
|
||||
|
||||
if platform?('amazon')
|
||||
if node['platform_version'].to_i > 2010
|
||||
default['yum']['epel-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-6&arch=$basearch'
|
||||
default['yum']['epel-source']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
else
|
||||
default['yum']['epel-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-7&arch=$basearch'
|
||||
default['yum']['epel-source']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
end
|
||||
default['yum']['epel-source']['description'] = 'Extra Packages for 7 - $basearch - Source'
|
||||
default['yum']['epel-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-7&arch=$basearch'
|
||||
default['yum']['epel-source']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
else
|
||||
default['yum']['epel-source']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-source']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Source"
|
||||
default['yum']['epel-source']['mirrorlist'] = "https://mirrors.fedoraproject.org/mirrorlist?repo=epel-source-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-source']['gpgkey'] = "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
end
|
||||
default['yum']['epel-source']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-source']['gpgcheck'] = true
|
||||
default['yum']['epel-source']['enabled'] = false
|
||||
default['yum']['epel-source']['managed'] = false
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
default['yum']['epel-testing-debuginfo']['repositoryid'] = 'epel-testing-debuginfo'
|
||||
default['yum']['epel-testing-debuginfo']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing Debug"
|
||||
|
||||
if platform?('amazon')
|
||||
if node['platform_version'].to_i > 2010
|
||||
default['yum']['epel-testing-debuginfo']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel6&arch=$basearch'
|
||||
default['yum']['epel-testing-debuginfo']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
else
|
||||
default['yum']['epel-testing-debuginfo']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel7&arch=$basearch'
|
||||
default['yum']['epel-testing-debuginfo']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
end
|
||||
default['yum']['epel-testing-debuginfo']['description'] = 'Extra Packages for 7 - $basearch - Testing Debug'
|
||||
default['yum']['epel-testing-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel7&arch=$basearch'
|
||||
default['yum']['epel-testing-debuginfo']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
else
|
||||
default['yum']['epel-testing-debuginfo']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-testing-debuginfo']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing Debug"
|
||||
default['yum']['epel-testing-debuginfo']['mirrorlist'] = "https://mirrors.fedoraproject.org/mirrorlist?repo=testing-debug-epel#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-testing-debuginfo']['gpgkey'] = "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
end
|
||||
default['yum']['epel-testing-debuginfo']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-testing-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-testing-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-testing-debuginfo']['managed'] = false
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-testing-modular-debuginfo']['repositoryid'] = 'epel-testing-modular-debuginfo'
|
||||
default['yum']['epel-testing-modular-debuginfo']['description'] = 'Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch - Debug'
|
||||
default['yum']['epel-testing-modular-debuginfo']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-modular-debug-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-testing-modular-debuginfo']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-testing-modular-debuginfo']['gpgcheck'] = true
|
||||
default['yum']['epel-testing-modular-debuginfo']['enabled'] = false
|
||||
default['yum']['epel-testing-modular-debuginfo']['managed'] = false
|
||||
default['yum']['epel-testing-modular-debuginfo']['make_cache'] = true
|
||||
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-testing-modular-source']['repositoryid'] = 'epel-testing-modular-source'
|
||||
default['yum']['epel-testing-modular-source']['description'] = 'Extra Packages for Enterprise Linux Modular $releasever- Testing - $basearch - Source'
|
||||
default['yum']['epel-testing-modular-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-modular-source-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-testing-modular-source']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-testing-modular-source']['gpgcheck'] = true
|
||||
default['yum']['epel-testing-modular-source']['enabled'] = false
|
||||
default['yum']['epel-testing-modular-source']['managed'] = false
|
||||
default['yum']['epel-testing-modular-source']['make_cache'] = true
|
||||
8
cookbooks/yum-epel/attributes/epel-testing-modular.rb
Normal file
8
cookbooks/yum-epel/attributes/epel-testing-modular.rb
Normal file
@@ -0,0 +1,8 @@
|
||||
default['yum']['epel-testing-modular']['repositoryid'] = 'epel-testing-modular'
|
||||
default['yum']['epel-testing-modular']['description'] = 'Extra Packages for Enterprise Linux Modular $releasever - Testing - $basearch'
|
||||
default['yum']['epel-testing-modular']['mirrorlist'] = 'https://mirrors.fedoraproject.org/metalink?repo=testing-modular-epel$releasever&arch=$basearch&infra=$infra&content=$contentdir'
|
||||
default['yum']['epel-testing-modular']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-8'
|
||||
default['yum']['epel-testing-modular']['gpgcheck'] = true
|
||||
default['yum']['epel-testing-modular']['enabled'] = false
|
||||
default['yum']['epel-testing-modular']['managed'] = false
|
||||
default['yum']['epel-testing-modular']['make_cache'] = true
|
||||
@@ -1,19 +1,14 @@
|
||||
default['yum']['epel-testing-source']['repositoryid'] = 'epel-testing-source'
|
||||
default['yum']['epel-testing-source']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing Source"
|
||||
|
||||
if platform?('amazon')
|
||||
if node['platform_version'].to_i > 2010
|
||||
default['yum']['epel-testing-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel6&arch=$basearch'
|
||||
default['yum']['epel-testing-source']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
else
|
||||
default['yum']['epel-testing-source']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel7&arch=$basearch'
|
||||
default['yum']['epel-testing-source']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
end
|
||||
default['yum']['epel-testing-source']['description'] = 'Extra Packages for 7 - $basearch - Testing Source'
|
||||
default['yum']['epel-testing-source']['mirrorlist'] = 'https://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel7&arch=$basearch'
|
||||
default['yum']['epel-testing-source']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
else
|
||||
default['yum']['epel-testing-source']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-testing-source']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing Source"
|
||||
default['yum']['epel-testing-source']['mirrorlist'] = "https://mirrors.fedoraproject.org/mirrorlist?repo=testing-source-epel#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-testing-source']['gpgkey'] = "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
end
|
||||
default['yum']['epel-testing-source']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-testing-source']['gpgcheck'] = true
|
||||
default['yum']['epel-testing-source']['enabled'] = false
|
||||
default['yum']['epel-testing-source']['managed'] = false
|
||||
|
||||
@@ -1,19 +1,14 @@
|
||||
default['yum']['epel-testing']['repositoryid'] = 'epel-testing'
|
||||
default['yum']['epel-testing']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing "
|
||||
|
||||
if platform?('amazon')
|
||||
if node['platform_version'].to_i > 2010
|
||||
default['yum']['epel-testing']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel6&arch=$basearch'
|
||||
default['yum']['epel-testing']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
else
|
||||
default['yum']['epel-testing']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel7&arch=$basearch'
|
||||
default['yum']['epel-testing']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
end
|
||||
default['yum']['epel-testing']['description'] = 'Extra Packages for 7 - $basearch - Testing '
|
||||
default['yum']['epel-testing']['mirrorlist'] = 'https://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel7&arch=$basearch'
|
||||
default['yum']['epel-testing']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
else
|
||||
default['yum']['epel-testing']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-testing']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch - Testing "
|
||||
default['yum']['epel-testing']['mirrorlist'] = "https://mirrors.fedoraproject.org/mirrorlist?repo=testing-epel#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel-testing']['gpgkey'] = "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
end
|
||||
default['yum']['epel-testing']['failovermethod'] = 'priority'
|
||||
default['yum']['epel-testing']['gpgcheck'] = true
|
||||
default['yum']['epel-testing']['enabled'] = false
|
||||
default['yum']['epel-testing']['managed'] = false
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
default['yum']['epel']['repositoryid'] = 'epel'
|
||||
default['yum']['epel']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch"
|
||||
default['yum']['epel']['gpgcheck'] = true
|
||||
case node['kernel']['machine']
|
||||
when 'armv7l', 'armv7hl'
|
||||
@@ -10,19 +9,15 @@ when 's390x'
|
||||
default['yum']['epel']['gpgkey'] = 'https://kojipkgs.fedoraproject.org/rhel/rc/7/Server/s390x/os/RPM-GPG-KEY-redhat-release'
|
||||
else
|
||||
if platform?('amazon')
|
||||
if node['platform_version'].to_i > 2010
|
||||
default['yum']['epel']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-6&arch=$basearch'
|
||||
default['yum']['epel']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-6'
|
||||
else
|
||||
default['yum']['epel']['mirrorlist'] = 'http://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=$basearch'
|
||||
default['yum']['epel']['gpgkey'] = 'http://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
end
|
||||
default['yum']['epel']['description'] = 'Extra Packages for 7 - $basearch'
|
||||
default['yum']['epel']['mirrorlist'] = 'https://mirrors.fedoraproject.org/mirrorlist?repo=epel-7&arch=$basearch'
|
||||
default['yum']['epel']['gpgkey'] = 'https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-7'
|
||||
else
|
||||
default['yum']['epel']['mirrorlist'] = "http://mirrors.fedoraproject.org/mirrorlist?repo=epel-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel']['description'] = "Extra Packages for #{node['platform_version'].to_i} - $basearch"
|
||||
default['yum']['epel']['mirrorlist'] = "https://mirrors.fedoraproject.org/mirrorlist?repo=epel-#{node['platform_version'].to_i}&arch=$basearch"
|
||||
default['yum']['epel']['gpgkey'] = "https://download.fedoraproject.org/pub/epel/RPM-GPG-KEY-EPEL-#{node['platform_version'].to_i}"
|
||||
end
|
||||
end
|
||||
default['yum']['epel']['failovermethod'] = 'priority'
|
||||
default['yum']['epel']['enabled'] = true
|
||||
default['yum']['epel']['managed'] = true
|
||||
default['yum']['epel']['make_cache'] = true
|
||||
|
||||
115
cookbooks/yum-epel/chefignore
Normal file
115
cookbooks/yum-epel/chefignore
Normal file
@@ -0,0 +1,115 @@
|
||||
# Put files/directories that should be ignored in this file when uploading
|
||||
# to a Chef Infra Server or Supermarket.
|
||||
# Lines that start with '# ' are comments.
|
||||
|
||||
# OS generated files #
|
||||
######################
|
||||
.DS_Store
|
||||
ehthumbs.db
|
||||
Icon?
|
||||
nohup.out
|
||||
Thumbs.db
|
||||
.envrc
|
||||
|
||||
# EDITORS #
|
||||
###########
|
||||
.#*
|
||||
.project
|
||||
.settings
|
||||
*_flymake
|
||||
*_flymake.*
|
||||
*.bak
|
||||
*.sw[a-z]
|
||||
*.tmproj
|
||||
*~
|
||||
\#*
|
||||
REVISION
|
||||
TAGS*
|
||||
tmtags
|
||||
.vscode
|
||||
.editorconfig
|
||||
|
||||
## COMPILED ##
|
||||
##############
|
||||
*.class
|
||||
*.com
|
||||
*.dll
|
||||
*.exe
|
||||
*.o
|
||||
*.pyc
|
||||
*.so
|
||||
*/rdoc/
|
||||
a.out
|
||||
mkmf.log
|
||||
|
||||
# Testing #
|
||||
###########
|
||||
.circleci/*
|
||||
.codeclimate.yml
|
||||
.delivery/*
|
||||
.foodcritic
|
||||
.kitchen*
|
||||
.mdlrc
|
||||
.overcommit.yml
|
||||
.rspec
|
||||
.rubocop.yml
|
||||
.travis.yml
|
||||
.watchr
|
||||
.yamllint
|
||||
azure-pipelines.yml
|
||||
Dangerfile
|
||||
examples/*
|
||||
features/*
|
||||
Guardfile
|
||||
kitchen.yml*
|
||||
mlc_config.json
|
||||
Procfile
|
||||
Rakefile
|
||||
spec/*
|
||||
test/*
|
||||
|
||||
# SCM #
|
||||
#######
|
||||
.git
|
||||
.gitattributes
|
||||
.gitconfig
|
||||
.github/*
|
||||
.gitignore
|
||||
.gitkeep
|
||||
.gitmodules
|
||||
.svn
|
||||
*/.bzr/*
|
||||
*/.git
|
||||
*/.hg/*
|
||||
*/.svn/*
|
||||
|
||||
# Berkshelf #
|
||||
#############
|
||||
Berksfile
|
||||
Berksfile.lock
|
||||
cookbooks/*
|
||||
tmp
|
||||
|
||||
# Bundler #
|
||||
###########
|
||||
vendor/*
|
||||
Gemfile
|
||||
Gemfile.lock
|
||||
|
||||
# Policyfile #
|
||||
##############
|
||||
Policyfile.rb
|
||||
Policyfile.lock.json
|
||||
|
||||
# Documentation #
|
||||
#############
|
||||
CODE_OF_CONDUCT*
|
||||
CONTRIBUTING*
|
||||
documentation/*
|
||||
TESTING*
|
||||
UPGRADING*
|
||||
|
||||
# Vagrant #
|
||||
###########
|
||||
.vagrant
|
||||
Vagrantfile
|
||||
46
cookbooks/yum-epel/kitchen.dokken.yml
Normal file
46
cookbooks/yum-epel/kitchen.dokken.yml
Normal file
@@ -0,0 +1,46 @@
|
||||
driver:
|
||||
name: dokken
|
||||
privileged: true # because Docker and SystemD
|
||||
chef_version: <%= ENV['CHEF_VERSION'] || 'current' %>
|
||||
chef_license: accept-no-persist
|
||||
|
||||
transport:
|
||||
name: dokken
|
||||
|
||||
provisioner:
|
||||
name: dokken
|
||||
deprecations_as_errors: true
|
||||
|
||||
verifier:
|
||||
name: inspec
|
||||
|
||||
platforms:
|
||||
- name: amazonlinux-2
|
||||
driver:
|
||||
image: dokken/amazonlinux-2
|
||||
pid_one_command: /usr/lib/systemd/systemd
|
||||
|
||||
- name: centos-7
|
||||
driver:
|
||||
image: dokken/centos-7
|
||||
pid_one_command: /usr/lib/systemd/systemd
|
||||
|
||||
- name: centos-8
|
||||
driver:
|
||||
image: dokken/centos-8
|
||||
pid_one_command: /usr/lib/systemd/systemd
|
||||
|
||||
- name: centos-stream-8
|
||||
driver:
|
||||
image: dokken/centos-stream-8
|
||||
pid_one_command: /usr/lib/systemd/systemd
|
||||
|
||||
- name: oraclelinux-7
|
||||
driver:
|
||||
image: dokken/oraclelinux-7
|
||||
pid_one_command: /usr/lib/systemd/systemd
|
||||
|
||||
- name: oraclelinux-8
|
||||
driver:
|
||||
image: dokken/oraclelinux-8
|
||||
pid_one_command: /usr/lib/systemd/systemd
|
||||
46
cookbooks/yum-epel/libraries/helpers.rb
Normal file
46
cookbooks/yum-epel/libraries/helpers.rb
Normal file
@@ -0,0 +1,46 @@
|
||||
module YumEpel
|
||||
module Cookbook
|
||||
module Helpers
|
||||
def epel_8_repos
|
||||
repos = %w(
|
||||
epel
|
||||
epel-debuginfo
|
||||
epel-modular
|
||||
epel-modular-debuginfo
|
||||
epel-modular-source
|
||||
epel-playground
|
||||
epel-playground-debuginfo
|
||||
epel-playground-source
|
||||
epel-source
|
||||
epel-testing
|
||||
epel-testing-debuginfo
|
||||
epel-testing-modular
|
||||
epel-testing-modular-debuginfo
|
||||
epel-testing-modular-source
|
||||
epel-testing-source
|
||||
)
|
||||
|
||||
repos.concat(
|
||||
%w(
|
||||
epel-next
|
||||
epel-next-debuginfo
|
||||
epel-next-source
|
||||
epel-next-testing
|
||||
epel-next-testing-debuginfo
|
||||
epel-next-testing-source
|
||||
)
|
||||
) if yum_epel_centos_stream?
|
||||
|
||||
repos
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
def yum_epel_centos_stream?
|
||||
respond_to?(:centos_stream_platform?) && centos_stream_platform?
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
# Needed to used in attributes/
|
||||
Chef::Node.include ::YumEpel::Cookbook::Helpers
|
||||
File diff suppressed because one or more lines are too long
16
cookbooks/yum-epel/metadata.rb
Normal file
16
cookbooks/yum-epel/metadata.rb
Normal file
@@ -0,0 +1,16 @@
|
||||
name 'yum-epel'
|
||||
maintainer 'Sous Chefs'
|
||||
maintainer_email 'help@sous-chefs.org'
|
||||
license 'Apache-2.0'
|
||||
description 'Installs and configures the EPEL Yum repository'
|
||||
version '4.2.3'
|
||||
source_url 'https://github.com/sous-chefs/yum-epel'
|
||||
issues_url 'https://github.com/sous-chefs/yum-epel/issues'
|
||||
chef_version '>= 12.15'
|
||||
|
||||
supports 'amazon'
|
||||
supports 'centos'
|
||||
supports 'oracle'
|
||||
supports 'redhat'
|
||||
supports 'scientific'
|
||||
supports 'zlinux'
|
||||
@@ -3,7 +3,7 @@
|
||||
# Cookbook:: yum-epel
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright:: 2013-2017, Chef Software, Inc.
|
||||
# Copyright:: 2013-2019, 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.
|
||||
|
||||
Reference in New Issue
Block a user