Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/sous-chefs/yum-percona

Development repository for the yum-percona cookbook
https://github.com/sous-chefs/yum-percona

chef chef-cookbook chef-resource hacktoberfest managed-by-terraform yum-percona

Last synced: about 1 month ago
JSON representation

Development repository for the yum-percona cookbook

Awesome Lists containing this project

README

        

# yum-percona Cookbook

[![Cookbook Version](https://img.shields.io/cookbook/v/yum-percona.svg)](https://supermarket.chef.io/cookbooks/yum-percona)
[![CI State](https://github.com/sous-chefs/yum-percona/workflows/ci/badge.svg)](https://github.com/sous-chefs/yum-percona/actions?query=workflow%3Aci)
[![OpenCollective](https://opencollective.com/sous-chefs/backers/badge.svg)](#backers)
[![OpenCollective](https://opencollective.com/sous-chefs/sponsors/badge.svg)](#sponsors)
[![License](https://img.shields.io/badge/License-Apache%202.0-green.svg)](https://opensource.org/licenses/Apache-2.0)

The yum-percona cookbook takes over management of the default repositoryids used with the official Percona repositories. It allows attribute manipulation of the `percona` yum channel.

## 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

- RHEL/CentOS and derivatives
- Fedora

### Chef

- Chef 12.14+

### Cookbooks

- none

## Attributes

The following attributes are set by default

```ruby
default['yum']['percona']['description'] = 'Percona MySQL and tools repository'
default['yum']['percona']['baseurl'] = "http://repo.percona.com/centos/6/os/$basearch/"
default['yum']['percona']['gpgkey'] = 'http://www.percona.com/downloads/RPM-GPG-KEY-percona'
default['yum']['percona']['gpgcheck'] = true
default['yum']['percona']['enabled'] = true
```

## 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 'percona' do
baseurl 'http://repo.percona.com/centos/6/os/$basearch/'
description 'Percona MySQL and tools repository'
enabled true
gpgcheck true
gpgkey 'http://www.percona.com/downloads/RPM-GPG-KEY-percona'
end
```

## Usage Example

To disable the Percona repository through a Role or Environment definition

```ruby
default_attributes(
:yum => {
:percona => {
:enabled => {
false
}
}
}
)
```

To enable the Percona repository with a wrapper cookbook, place the following in a recipe:

```ruby
node.default['yum']['percona']['enabled'] = true
include_recipe 'yum-percona'
```

## More Examples

Point the base and updates repositories at an internally hosted server.

```ruby
node.default['yum']['percona']['enabled'] = true
node.default['yum']['percona']['mirrorlist'] = nil
node.default['yum']['percona']['baseurl'] = 'https://internal.example.com/centos/6/os/x86_64'
node.default['yum']['percona']['sslverify'] = false

include_recipe 'yum-percona'
```

## Contributors

This project exists thanks to all the people who [contribute.](https://opencollective.com/sous-chefs/contributors.svg?width=890&button=false)

### Backers

Thank you to all our backers!

![https://opencollective.com/sous-chefs#backers](https://opencollective.com/sous-chefs/backers.svg?width=600&avatarHeight=40)

### Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website.

![https://opencollective.com/sous-chefs/sponsor/0/website](https://opencollective.com/sous-chefs/sponsor/0/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/1/website](https://opencollective.com/sous-chefs/sponsor/1/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/2/website](https://opencollective.com/sous-chefs/sponsor/2/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/3/website](https://opencollective.com/sous-chefs/sponsor/3/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/4/website](https://opencollective.com/sous-chefs/sponsor/4/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/5/website](https://opencollective.com/sous-chefs/sponsor/5/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/6/website](https://opencollective.com/sous-chefs/sponsor/6/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/7/website](https://opencollective.com/sous-chefs/sponsor/7/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/8/website](https://opencollective.com/sous-chefs/sponsor/8/avatar.svg?avatarHeight=100)
![https://opencollective.com/sous-chefs/sponsor/9/website](https://opencollective.com/sous-chefs/sponsor/9/avatar.svg?avatarHeight=100)