Version information
This version is compatible with:
- Puppet Enterprise >= 3.0.0
- Puppet >= 2.7.0
- , , , , , , ,
Start using this module
Add this module to your Puppetfile:
mod 'aco-mysql_yumrepo', '1.2.0'
Learn more about managing modules with a PuppetfileDocumentation
####Table of Contents
##Overview
The mysql_yumrepo module installs the MySQL Community YUM repository on RHEL variants and SuSE Linux.
##Module description
MySQL Community repositories allow users to get access to the latest MySQL Community releases from Oracle. This module only supports systems which use the RPM package manager, ie. RHEL variants and SuSE Linux.
The following repositories will be enabled by default:
- mysql-connectors-community
- mysql-tools-community
- mysql57-community
One can also enable these extra repositories:
- mysql55-community
- mysql56-community
- mysql-tools-preview
- mysql-connectors-community-source
- mysql-tools-community-source
- mysql-tools-preview-source
- mysql55-community-source
- mysql56-community-source
- mysql57-community-source
##Setup
mysql_yumrepo will affect the following parts of your system:
- MySQL Community YUM repositories
- MySQL GPG key
Including the main class is enough to get started. It will install the MySQL Community repositories described above.
include mysql_yumrepo
####A couple of examples
Also enable the 'source' repository for MySQL 5.7
class { 'mysql_yumrepo':
enable_57_src => 1
}
Disable the GPG signature check
class { 'mysql_yumrepo':
…
gpgcheck => 0
}
##Usage
####Class: mysql_yumrepo
Primary class and entry point of the module.
Parameters within mysql_yumrepo
:
#####gpgcheck
Switch to perform or not GPG signature checks on repository packages. Defaults to '1'
#####enable_connectors
Enable MySQL Connectors Community repository. Defaults to '1'
#####enable_tools
Enable MySQL Tools Community repository. Defaults to '1'
Note: not available on EL 5
#####enable_tools_preview
Enable MySQL Tools Preview repository. Defaults to '0'
Note: only available on EL >= 6 and Fedora >= 22
#####enable_55
Enable MySQL 5.5 repository. Defaults to '0'
Note: only available on EL >= 6 and SLES 11
#####enable_56
Enable MySQL 5.6 repository. Defaults to '0'
#####enable_57
Enable MySQL 5.7 repository. Defaults to '1'
#####enable_connectors_src
Enable MySQL Connectors Community source repository. Defaults to '0'
#####enable_tools_src
Enable MySQL Tools Community source repository. Defaults to '0'
Note: not available on EL 5
#####enable_tools_preview_src
Enable MySQL Tools Preview source repository. Defaults to '0'
Note: only available on EL >= 6 and Fedora >= 22
#####enable_55_src
Enable MySQL 5.5 source repository. Defaults to '0'
Note: only available on EL >= 6
#####enable_56_src
Enable MySQL 5.6 source repository. Defaults to '0'
#####enable_57_src
Enable MySQL 5.7 source repository. Defaults to '0'
##Credits
The rpm_gpg_key
defined type was reused from the 'epel' module by Michael Stahnke (stahnma).
Features request and contributions are always welcome!
###1.2.0
- Use MySQL 5.7 stable repository and enable it by default
- Update GPG key
- Add Tools Preview repository
- Support recent Fedora releases
###1.1.0
Support SuSE Linux and Fedora 21
###1.0.1
Fixed typo which prevented the MySQL 5.5 repo from being created
###1.0.0
First forge release
Copyright 2014 Antoine Cotten 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.