Skip to content
This repository has been archived by the owner on Jun 21, 2018. It is now read-only.

antoineco/aco-mysql_yumrepo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

#mysql_yumrepo Build Status

####Table of Contents

  1. Overview
  2. Module Description
  3. Setup
  4. Usage
  5. Credits

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