Ask Your Question

MySQL Installation from iUS repo

asked 2015-06-09 02:52:20 -0600

TimmyC gravatar image


I am running a Centos 6 x64 vagrant box and would like to use Puppet MySQL Module to install MySQL5.6.

I tried module puppetlabs/mysql and works fine, except it only installs MySQL 5.1 comes default from Centos Yum.

I found iUS supplies MySQL5.6 but named as mysql56u.

My question is how do I use puppetlabs/mysql module to install mysql56u instead of mysql5.1?

I realized there is an option similar to:

  package { "mysql56u":
      ensure => "installed"

but I would really like to have the other configuration options provided by puppetlabs/mysql module.

Many thanks

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2015-06-10 15:21:25 -0600

GregLarkin gravatar image

The puppetlabs-mysql module has attributes on some classes for managing the client and server packages, including packageensure, packagemanage and package_name. Please see here for all of the details:

Combining the use of those attributes with a yumrepo resource that points to the iUS repository, you should be able to achieve what you're trying to do.

edit flag offensive delete link more


package_name => 'mysql55-server', does the job well. Thanks!

TimmyC gravatar imageTimmyC ( 2015-06-22 00:06:15 -0600 )edit

answered 2015-06-11 15:05:06 -0600

ramindk gravatar image

It might be simpler to use the Mysql repo instead of IUS. Most people use IUS because the packages install in parallel which is nice when you want python3, but can't upgrade system Python without break yum. However with Mysql installing in parallel shouldn't be required. You will need to make sure the compat packages are installed so the OS knows to accept the new Mysql as fulfilling the requirements of earlier Mysql versions.

Mysql repo

edit flag offensive delete link more


This is probably better way to go, but I heard Mysql repo uses 'MySQL' name. To avoid yum case-sensitive issue, I went with the other.

TimmyC gravatar imageTimmyC ( 2015-06-22 00:08:21 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-06-09 01:54:51 -0600

Seen: 328 times

Last updated: Jun 11 '15