Update cookbooks for Ubuntu 16.04 TLS

This commit is contained in:
Greg Karékinian
2017-03-31 19:20:00 +02:00
parent 6430d71006
commit 8923d0d7ef
219 changed files with 2770 additions and 11511 deletions

View File

@@ -1,28 +1,21 @@
# yum-epel Cookbook
[![Build Status](https://travis-ci.org/chef-cookbooks/yum-epel.svg?branch=master)](http://travis-ci.org/chef-cookbooks/yum-epel) [![Cookbook Version](https://img.shields.io/cookbook/v/yum-epel.svg)](https://supermarket.chef.io/cookbooks/yum-epel)
yum-epel Cookbook
============
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`.
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
------------
* Chef 11 or higher
* yum cookbook version 3.0.0 or higher
## Requirements
### Platforms
- RHEL/CentOS and derivatives
### Chef
- Chef 11+
### Cookbooks
- yum version 3.6.3 or higher
## Attributes
Attributes
----------
The following attributes are set by default
```ruby
default['yum-epel']['repositories'] = %w{epel epel-debuginfo epel-source epel-testing epel-testing-debuginfo epel-testing-source}
```
```ruby
``` 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'
@@ -33,7 +26,7 @@ default['yum']['epel']['enabled'] = true
default['yum']['epel']['managed'] = true
```
```ruby
``` 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'
@@ -44,7 +37,7 @@ default['yum']['epel-debuginfo']['enabled'] = false
default['yum']['epel-debuginfo']['managed'] = false
```
```ruby
``` 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'
@@ -55,7 +48,7 @@ default['yum']['epel-source']['enabled'] = false
default['yum']['epel-source']['managed'] = false
```
```ruby
``` 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'
@@ -66,7 +59,7 @@ default['yum']['epel-testing']['enabled'] = false
default['yum']['epel-testing']['managed'] = false
```
```ruby
``` 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'
@@ -77,7 +70,7 @@ default['yum']['epel-testing-debuginfo']['enabled'] = false
default['yum']['epel-testing-debuginfo']['managed'] = false
```
```ruby
``` 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'
@@ -88,10 +81,11 @@ 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.
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
@@ -103,7 +97,8 @@ default['yum']['epel-testing-source']['managed'] = false
end
```
## Usage Example
Usage Example
-------------
To disable the epel repository through a Role or Environment definition
```
@@ -118,18 +113,22 @@ default_attributes(
)
```
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:
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
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'
@@ -138,12 +137,13 @@ node.default['yum']['epel']['sslverify'] = false
include_recipe 'yum-epel'
```
## License & Authors
**Author:** Cookbook Engineering Team ([cookbooks@chef.io](mailto:cookbooks@chef.io))
License & Authors
-----------------
- Author:: Sean OMeara (<someara@opscode.com>)
**Copyright:** 2011-2016, Chef Software, Inc.
```text
Copyright:: 2011-2013 Opscode, Inc.
```
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at