Ask Your Question
1

MySQL Installation from iUS repo

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

TimmyC gravatar image

Hi,

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
1

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

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: https://forge.puppetlabs.com/puppetlabs/mysql/readme#parameters

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

Comments

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

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

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

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 http://dev.mysql.com/downloads/file.p...

edit flag offensive delete link more

Comments

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 -0500 )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

Stats

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

Seen: 276 times

Last updated: Jun 11 '15