Ask Your Question
0

Install package version x.y or greater?

asked 2015-05-06 19:17:31 -0500

Currently, I'm installing packages using the package type. I want to ensure that the MySQL package meets a minimum version, so I do the following:

package { 'mysql-community-server':                                                                                              
  ensure => 5.6.24-2.el6,
}

On my MySQL hosts, I would like to have the option to manually upgrade the mysql-community-server to a newer version for testing. However, when I do this, Puppet complains that the version on the host is different then the version specified in the manifest.

Can I tell the package type to ensure that the package is at a specified version or newer?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
1

answered 2015-05-06 22:22:47 -0500

GregLarkin gravatar image

No, this can't be done directly in the Puppet DSL, but this thread (https://groups.google.com/forum/#!topic/puppet-users/VNMgvOvUMvo) has a couple of ideas for workarounds.

It looks like some people solve this issue by hosting their own internal package repository, and you might also be able to use the "yum versionlock" plugin to pin certain package versions outside of Puppet, then use "ensure => latest" in your Puppet code.

edit flag offensive delete link more

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-05-06 19:17:31 -0500

Seen: 1,710 times

Last updated: May 06 '15