Dev set up
This commit is contained in:
162
ops/cookbooks/vendor/yum-epel/CHANGELOG.md
vendored
Normal file
162
ops/cookbooks/vendor/yum-epel/CHANGELOG.md
vendored
Normal file
@ -0,0 +1,162 @@
|
||||
# yum-epel Cookbook CHANGELOG
|
||||
|
||||
This file is used to list changes made in each version of the yum-epel cookbook.
|
||||
|
||||
## 3.3.0 (2018-10-09)
|
||||
|
||||
- Fix cookbook to work on all releases of Amazon Linux 2
|
||||
- Test on Amazon Linux 2 in specs and in Travis
|
||||
|
||||
## 3.2.0 (2018-07-24)
|
||||
|
||||
- Support EPEL on ARM32.
|
||||
|
||||
## 3.1.0 (2018-02-26)
|
||||
|
||||
- Add support for Amazon Linux 2.0
|
||||
|
||||
## 3.0.0 (2018-02-16)
|
||||
|
||||
- Require Chef 12.14+ and remove the compat_resource dependency
|
||||
|
||||
## 2.1.2 (2017-06-15)
|
||||
|
||||
- Switch from Rake testing to Local Delivery
|
||||
- Update apache2 license string to be a SPDX compliant string
|
||||
- Change yum repo location of gpgkey to download.fedoraproject.org instead of dl.fedoraproject.org
|
||||
- Avoid chefspec deprecations and speed up specs
|
||||
|
||||
## 2.1.1 (2017-01-05)
|
||||
|
||||
- Revert how mirror list strings are generated to fix RHEL 7
|
||||
|
||||
## 2.1.0 (2016-12-22)
|
||||
|
||||
- Test in Travis using the current build of chef/chef docker image
|
||||
- Test on older Chef
|
||||
- allow the use of any valid property via attributes
|
||||
- fixing tests
|
||||
- output versions in the job that is being ran
|
||||
- cops
|
||||
|
||||
## 2.0.0 (2016-11-26)
|
||||
|
||||
- Clarify that we require Chef 12.1+ not 12.0+
|
||||
- Use compat_resource instead of the yum cookbook
|
||||
- Add integration testing with inspec
|
||||
|
||||
## 1.0.2 (2016-10-21)
|
||||
|
||||
- Remove upper bound on yum constraint
|
||||
|
||||
## 1.0.1 (2016-09-11)
|
||||
|
||||
- Fix epel-testing attributes
|
||||
|
||||
## 1.0.0 (2016-09-06)
|
||||
|
||||
- Add chef_version metadata
|
||||
- Testing updates
|
||||
- Remove support for Chef 11
|
||||
|
||||
## v0.7.1 (2016-08-19)
|
||||
|
||||
- Remove bats testing
|
||||
- Fix attribute settings
|
||||
- Cleanup travis file
|
||||
|
||||
## v0.7.0 (2016-04-27)
|
||||
|
||||
- Added support for IBM zlinux platform
|
||||
- Added back the Test Kitchen support for local vagrant testing
|
||||
- Added long_description to the metadata
|
||||
- Loosen the dependency on the yum cookbook
|
||||
|
||||
## v0.6.5
|
||||
|
||||
- updated to use `make_cache` option that yum cookbook allows for the yum resource to use.
|
||||
|
||||
## v0.6.5 (2015-11-23)
|
||||
|
||||
- Fix setting bool false properties
|
||||
|
||||
## v0.6.4 (2015-10-27)
|
||||
|
||||
- Updating default recipe for Chef 13 deprecation warnings. Not
|
||||
- passing nil.
|
||||
|
||||
## v0.6.3 (2015-09-22)
|
||||
|
||||
- Added standard Chef gitignore and chefignore files
|
||||
- Added the standard chef rubocop config
|
||||
- Update contributing, maintainers, and testing docs
|
||||
- Update Chefspec config to 4.X format
|
||||
- Update distro versions in the Kitchen config
|
||||
- Add Travis CI and cookbook version badges in the readme
|
||||
- Expand the requirements section in the readme
|
||||
- Add additional distros to the metadata
|
||||
- Added source_url and issues_url metadata
|
||||
|
||||
## v0.6.2 (2015-06-21)
|
||||
|
||||
- Depending on yum ~> 3.2
|
||||
- Support for the password attribute wasn't added to the
|
||||
- yum_repository LWRP until yum 3.2.0.
|
||||
|
||||
## v0.6.1 (2015-06-21)
|
||||
|
||||
- Switching to https for URL links
|
||||
- Using metalink URLs
|
||||
|
||||
## v0.6.0 (2015-01-03)
|
||||
|
||||
- Adding EL7 support
|
||||
|
||||
## v0.5.3 (2014-10-28)
|
||||
|
||||
- Revert Use HTTPS for GPG keys and mirror lists
|
||||
|
||||
## v0.5.2 (2014-10-28)
|
||||
|
||||
- Use HTTPS for GPG keys and mirror lists
|
||||
- Use local key on Amazon Linux
|
||||
|
||||
## v0.5.0 (2014-09-02)
|
||||
|
||||
- Add all attribute available to LWRP to allow for tuning.
|
||||
|
||||
## v0.4.0 (2014-07-27)
|
||||
|
||||
- [#9] Allowing list of repositories to reference configurable.
|
||||
|
||||
## v0.3.6 (2014-04-09)
|
||||
|
||||
- [COOK-4509] add RHEL7 support to yum-epel cookbook
|
||||
|
||||
## v0.3.4 (2014-02-19)
|
||||
|
||||
COOK-4353 - Fixing typo in readme
|
||||
|
||||
## v0.3.2 (2014-02-13)
|
||||
|
||||
Updating README to explain the 'managed' parameter
|
||||
|
||||
## v0.3.0 (2014-02-12)
|
||||
|
||||
[COOK-4292] - Do not manage secondary repos by default
|
||||
|
||||
## v0.2.0
|
||||
|
||||
Adding Amazon Linux support
|
||||
|
||||
## v0.1.6
|
||||
|
||||
Fixing up attribute values for EL6
|
||||
|
||||
## v0.1.4
|
||||
|
||||
Adding CHANGELOG.md
|
||||
|
||||
## v0.1.0
|
||||
|
||||
initial release
|
2
ops/cookbooks/vendor/yum-epel/CONTRIBUTING.md
vendored
Normal file
2
ops/cookbooks/vendor/yum-epel/CONTRIBUTING.md
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
Please refer to
|
||||
https://github.com/chef-cookbooks/community_cookbook_documentation/blob/master/CONTRIBUTING.MD
|
175
ops/cookbooks/vendor/yum-epel/README.md
vendored
Normal file
175
ops/cookbooks/vendor/yum-epel/README.md
vendored
Normal file
@ -0,0 +1,175 @@
|
||||
# yum-epel Cookbook
|
||||
|
||||
[](http://travis-ci.org/chef-cookbooks/yum-epel) [](https://supermarket.chef.io/cookbooks/yum-epel)
|
||||
|
||||
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).
|
||||
|
||||
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`.
|
||||
|
||||
## Requirements
|
||||
|
||||
### Platforms
|
||||
|
||||
- RHEL/CentOS and derivatives
|
||||
|
||||
### Chef
|
||||
|
||||
- Chef 12.14+
|
||||
|
||||
### Cookbooks
|
||||
|
||||
- none
|
||||
|
||||
## 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
|
||||
```
|
||||
|
||||
## 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
|
||||
```
|
||||
|
||||
## Usage Example
|
||||
|
||||
To disable the epel repository through a Role or Environment definition
|
||||
|
||||
```
|
||||
default_attributes(
|
||||
:yum => {
|
||||
:epel => {
|
||||
: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 epel-testing repository with a wrapper cookbook, place the following in a recipe:
|
||||
|
||||
```ruby
|
||||
node.default['yum']['epel-testing']['enabled'] = true
|
||||
node.default['yum']['epel-testing']['managed'] = true
|
||||
include_recipe 'yum-epel'
|
||||
```
|
||||
|
||||
## More Examples
|
||||
|
||||
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']['sslverify'] = false
|
||||
|
||||
include_recipe 'yum-epel'
|
||||
```
|
||||
|
||||
## License & Authors
|
||||
|
||||
**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))
|
||||
|
||||
**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
|
||||
|
||||
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.
|
||||
```
|
8
ops/cookbooks/vendor/yum-epel/attributes/default.rb
vendored
Normal file
8
ops/cookbooks/vendor/yum-epel/attributes/default.rb
vendored
Normal file
@ -0,0 +1,8 @@
|
||||
default['yum-epel']['repos'] = %w(
|
||||
epel
|
||||
epel-debuginfo
|
||||
epel-source
|
||||
epel-testing
|
||||
epel-testing-debuginfo
|
||||
epel-testing-source
|
||||
)
|
20
ops/cookbooks/vendor/yum-epel/attributes/epel-debuginfo.rb
vendored
Normal file
20
ops/cookbooks/vendor/yum-epel/attributes/epel-debuginfo.rb
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
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']['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
|
||||
default['yum']['epel-debuginfo']['make_cache'] = true
|
20
ops/cookbooks/vendor/yum-epel/attributes/epel-source.rb
vendored
Normal file
20
ops/cookbooks/vendor/yum-epel/attributes/epel-source.rb
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
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']['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
|
||||
default['yum']['epel-source']['make_cache'] = true
|
20
ops/cookbooks/vendor/yum-epel/attributes/epel-testing-debuginfo.rb
vendored
Normal file
20
ops/cookbooks/vendor/yum-epel/attributes/epel-testing-debuginfo.rb
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
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']['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
|
||||
default['yum']['epel-testing-debuginfo']['make_cache'] = true
|
20
ops/cookbooks/vendor/yum-epel/attributes/epel-testing-source.rb
vendored
Normal file
20
ops/cookbooks/vendor/yum-epel/attributes/epel-testing-source.rb
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
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']['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
|
||||
default['yum']['epel-testing-source']['make_cache'] = true
|
20
ops/cookbooks/vendor/yum-epel/attributes/epel-testing.rb
vendored
Normal file
20
ops/cookbooks/vendor/yum-epel/attributes/epel-testing.rb
vendored
Normal file
@ -0,0 +1,20 @@
|
||||
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
|
||||
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']['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
|
||||
default['yum']['epel-testing']['make_cache'] = true
|
28
ops/cookbooks/vendor/yum-epel/attributes/epel.rb
vendored
Normal file
28
ops/cookbooks/vendor/yum-epel/attributes/epel.rb
vendored
Normal file
@ -0,0 +1,28 @@
|
||||
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'
|
||||
default['yum']['epel']['baseurl'] = 'https://armv7.dev.centos.org/repodir/epel-pass-1/'
|
||||
default['yum']['epel']['gpgcheck'] = false
|
||||
when 's390x'
|
||||
default['yum']['epel']['baseurl'] = 'https://kojipkgs.fedoraproject.org/rhel/rc/7/Server/s390x/os/'
|
||||
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
|
||||
else
|
||||
default['yum']['epel']['mirrorlist'] = "http://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
|
1
ops/cookbooks/vendor/yum-epel/metadata.json
vendored
Normal file
1
ops/cookbooks/vendor/yum-epel/metadata.json
vendored
Normal file
File diff suppressed because one or more lines are too long
27
ops/cookbooks/vendor/yum-epel/recipes/default.rb
vendored
Normal file
27
ops/cookbooks/vendor/yum-epel/recipes/default.rb
vendored
Normal file
@ -0,0 +1,27 @@
|
||||
#
|
||||
# Author:: Sean OMeara (<someara@chef.io>)
|
||||
# Cookbook:: yum-epel
|
||||
# Recipe:: default
|
||||
#
|
||||
# Copyright:: 2013-2017, 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
|
||||
#
|
||||
# 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.
|
||||
|
||||
node['yum-epel']['repos'].each do |repo|
|
||||
next unless node['yum'][repo]['managed']
|
||||
yum_repository repo do
|
||||
node['yum'][repo].each do |config, value|
|
||||
send(config.to_sym, value) unless value.nil? || config == 'managed'
|
||||
end
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user