Adoptable Cookbooks List

Looking for a cookbook to adopt? You can now see a list of cookbooks available for adoption!
List of Adoptable Cookbooks

Supermarket Belongs to the Community

Supermarket belongs to the community. While Chef has the responsibility to keep it running and be stewards of its functionality, what it does and how it works is driven by the community. The chef/supermarket repository will continue to be where development of the Supermarket application takes place. Come be part of shaping the direction of Supermarket by opening issues and pull requests or by joining us on the Chef Mailing List.

Select Badges

Select Supported Platforms

Select Status


yum-mysql-community (45) Versions 5.0.2

Installs/Configures yum-mysql-community

cookbook 'yum-mysql-community', '= 5.0.2', :supermarket
cookbook 'yum-mysql-community', '= 5.0.2'
knife supermarket install yum-mysql-community
knife supermarket download yum-mysql-community
Quality 50%

yum-mysql-community Cookbook

Cookbook Version
CI State

The yum-mysql-community cookbook takes over management of the default repository ids shipped with mysql*-community-release. It allows attribute manipulation of mysql-connectors-community, mysql56-community, and mysql57-community-dmr.


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 or come chat with us on the Chef Community Slack in #sous-chefs.



  • RHEL/CentOS and derivatives
  • Fedora


  • Chef 15.3+


  • none


The following attributes are set by default

default['yum']['mysql-connectors-community']['repositoryid'] = 'mysql-connectors-community'
default['yum']['mysql-connectors-community']['description'] = 'MySQL Connectors Community'
default['yum']['mysql-connectors-community']['baseurl'] = '$releasever/$basearch/'
default['yum']['mysql-connectors-community']['gpgkey'] = ''
default['yum']['mysql-connectors-community']['failovermethod'] = 'priority'
default['yum']['mysql-connectors-community']['gpgcheck'] = true
default['yum']['mysql-connectors-community']['enabled'] = true
default['yum']['mysql56-community']['repositoryid'] = 'mysql56-community'
default['yum']['mysql56-community']['description'] = 'MySQL 5.6 Community Server'
default['yum']['mysql56-community']['baseurl'] = '$releasever/$basearch/'
default['yum']['mysql56-community']['gpgkey'] = ''
default['yum']['mysql56-community']['failovermethod'] = 'priority'
default['yum']['mysql56-community']['gpgcheck'] = true
default['yum']['mysql56-community']['enabled'] = true
default['yum']['mysql57-community-dmr']['repositoryid'] = 'mysql57-community-dmr'
default['yum']['mysql57-community-dmr']['description'] = 'MySQL 5.7 Community Server Development Milestone Release'
default['yum']['mysql57-community-dmr']['baseurl'] = '$releasever/$basearch/'
default['yum']['mysql57-community-dmr']['gpgkey'] = ''
default['yum']['mysql57-community-dmr']['failovermethod'] = 'priority'
default['yum']['mysql57-community-dmr']['gpgcheck'] = true
default['yum']['mysql57-community-dmr']['enabled'] = true


  • mysql55 - Sets up the mysql55-community repository on supported platforms
  yum_repository 'mysql55-community' do
    mirrorlist '$releasever/$basearch/'
    description ''
    enabled true
    gpgcheck true
  • mysql56 - Sets up the mysql56-community repository on supported platforms
  yum_repository 'mysql56-community' do
    mirrorlist '$releasever/$basearch/'
    description ''
    enabled true
    gpgcheck true
  • connectors - Sets up the mysql-connectors-community repository on supported platforms


  • yum_mysql_community_repo - Creates /etc/yum.repos.d/mysql-community repo file with enabled repos on supported platforms
  yum_mysql_community_repo 'default' do
    version '8.0'
    gpgcheck true
    mysql_community_server true
    mysql_connectors_community true
    mysql_tools_community true
    mysql_tools_preview false
    mysql_cluster_community false

Usage Example

To disable the mysql-community-dmr repository through a Role or Environment definition

  :yum => {
    :mysql57-community-dmr => {
      :enabled => {

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 mysql-community-dmr repository with a wrapper cookbook, place the following in a recipe:

node.default['yum']['mysql57-community-dmr']['enabled'] = true
node.default['yum']['mysql57-community-dmr']['managed'] = true
include_recipe 'mysql57-community-dmr'

More Examples

Point the mysql56-community repositories at an internally hosted server.

node.default['yum']['mysql56-community']['enabled'] = true
node.default['yum']['mysql56-community']['mirrorlist'] = nil
node.default['yum']['mysql56-community']['baseurl'] = ''
node.default['yum']['mysql56-community']['sslverify'] = false

include_recipe 'mysql56-community'


This project exists thanks to all the people who contribute.


Thank you to all our backers!


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

yum-mysql-community Cookbook CHANGELOG

This file is used to list changes made in each version of the yum-mysql-community cookbook.

The format is based on Keep a Changelog,
and this project adheres to Semantic Versioning.

5.0.2 - 2021-08-31

  • Standardise files with files in sous-chefs/repo-management

5.0.1 - 2021-06-01

  • Standardise files with files in sous-chefs/repo-management

5.0.0 - 2021-05-13

  • Chef 17 updates: enable unified_mode on all resources
  • Bump required Chef Infra Client to >= 15.3

4.2.1 (2020-11-05)

  • Insure dnf module is only disabled where required

4.2.0 (2020-10-28)


  • Sous Chefs Adoption
  • Update Changelog to Sous Chefs
  • Update to use Sous Chefs GH workflow
  • Update README to sous-chefs
  • Update metadata.rb to Sous Chefs
  • Update test-kitchen to Sous Chefs
  • Cleanup attributes and fix Fedora
  • Improve integration testing


  • Yamllint fixes
  • MDL fixes
  • Add provides to resource


  • Fedora testing


  • Remove Amazon Linux 1 testing
  • Remove EL 6 testing

4.1.1 (2020-04-10)

  • Allow the resource to run on versions of chef-client that don't have the "description" metadata - @pierresouchay

4.1.0 (2020-03-02)

  • fix: error of gpgkey reference in older version. - @bigplants
  • Typo fix in file - @olegburca
  • Resolve Cookstyle 5.8 warnings - @tas50
  • Simplify platform check logic - @tas50
  • Remove unnecessary foodcritic comments - @tas50
  • Cookstyle fixes - @tas50
  • Add testing with Github Actions - @tas50
  • Add a new yum_mysql_community_repo resource - @Stromweld

4.0.1 (2018-02-26)

  • Switched to MySQL managed GPG key to avoid failures accessing the previous GitHub hosted key

4.0.0 (2018-02-23)

  • Add support for Amazon Linux 2.0
  • Require Chef 13 now that we assume Amazon Linux has it's own platform family

3.0.1 (2018-02-19)

  • Fixed GPG key download URL

3.0.0 (2018-02-16)

  • Require Chef 12.14+ and remove compat_resource dep

2.1.0 (2017-03-26)

  • Fix URLs for amazon so that 2017 resolves to '6' rather than 'latest'

2.0.3 (2016-12-22)

  • Depend on the latest compat_resource cookbook
  • Cookstyle fixes

2.0.2 (2016-11-26)

  • Remove yum-epel from the readme
  • Switch to inspec for testing
  • Fix mysql55 in travis

2.0.1 (2016-11-07)

  • yum_repository mirrorlist value updated in Readme

2.0.0 (2016-11-05)

  • Replace yum dependency with compat_resource
  • Replace 'epel' with 'mysql-community' in the readme

1.0.0 (2016-09-06)

  • Testing updates
  • Remove support for Chef 11

v0.3.0 (2016-07-22)

  • Support Oracle Linux
  • Correctly state the required yum cookbook version in the readme
  • Add chef_version metadata to metadata.rb

v0.2.0 (2016-03-29)

  • Add support for the 2016 Amazon Linux releases
  • Update test dependency gems and remove Guard
  • Test in Travis CI using kitchen-dokken

v0.1.21 (2015-12-01)

  • Fixing if/unless logic in recipes

v0.1.20 (2015-11-30)

  • Fixed attributes with a false value not being passed

v0.1.19 (2015-10-28)

  • Fixing Chef 13 nil property deprecation warnings

v0.1.18 (2015-09-21)

  • Added Travis CI config for lint and unit testing
  • Added Chef standard Rubocop file and resolved all warnings
  • Added Chef standard chefignore and .gitignore files
  • Add supported platforms to the metadata
  • Added source_url and issues_url to the metadata
  • Added long_description to the metadata
  • Updated and expanded development dependencies in the Gemfile
  • Added contributing, testing, and maintainers docs
  • Added platform requirements to the readme
  • Added Travis and cookbook version badges to the readme
  • Update Chefspec to 4.X format

v0.1.17 (2015-04-06)

  • Updating pubkey link from someara to chef-client github orgs

v0.1.16 (2015-03-25)

  • Adding support Amazon Linux 2015.03 to all channels

v0.1.15 (2015-03-25)

  • Added support for amazon linux 2015.03

v0.1.14 (2015-03-12)

  • The content of 0.1.13 is questionable: didn't have changelog entry, may have had merged attribute change, but let's be clear and say at least this version 0.1.14 is the right thing.

v0.1.13 (2015-03-12)

  • 3 corrected typo in public key attribute

v0.1.12 (2015-01-20)

  • Minor style updates

v0.1.11 (2014-07-21)

  • Adding RHEL-7 support

v0.1.10 (2014-07-21)

  • Adding mysql-5.7 and centos 7 support

v0.1.8 (2014-06-18)

  • Updating to support real RHEL

v0.1.6 (2014-06-16)

Fixing typo in mysql55-community attributes

v0.1.4 (2014-06-13)

  • updating url to keys in cookbook attributes

v0.1.2 (2014-06-11)

  • Move files/mysql_pubkey.asc to files/default/mysql_pubkey.asc

v0.1.0 (2014-04-30)

Initial release

Collaborator Number Metric

5.0.2 passed this metric

Contributing File Metric

5.0.2 passed this metric

Foodcritic Metric

5.0.2 failed this metric

FC033: Missing template file: yum-mysql-community/resources/repo.rb:85
Run with Foodcritic Version 16.3.0 with tags metadata,correctness ~FC031 ~FC045 and failure tags any

No Binaries Metric

5.0.2 failed this metric

Failure: Cookbook should not contain binaries. Found:

Testing File Metric

5.0.2 passed this metric

Version Tag Metric

5.0.2 failed this metric

Failure: To pass this metric, your cookbook metadata must include a source url, the source url must be in the form of, and your repo must include a tag that matches this cookbook version number