Ask Your Question
0

Puppet not installing specified version

asked 2013-12-16 20:27:37 -0500

nixgadgets gravatar image

Hi all,

Im trying to install this package dovecot using the following recipe however it doesnt seem to pick up the specified version instead installs the latest version.

  file { 'dovecot-ee-repo' :
        require => FILE['var-vmail-dir'],   source => "$puppet_folder/yum.repos.d/dovecot-ee.repo",     path => '/etc/yum.repos.d/dovecot-ee.repo'   }

  exec { 'dovecot-rpm' :
    require => FILE['dovecot-ee-repo'],
    command => "/bin/rpm --import https://yum.dovecot.fi/RPM-GPG-KEY.dovecot" }

  package { 'dovecot-ee' :
    require => EXEC[dovecot-rpm],
    ensure => '2.2.7.2-1.el6',   }

If I do the following I can see that the rpm version does exist in the repository.

sudo yum --showduplicates list dovecot-ee
Loaded plugins: rhnplugin, versionlock
This ...
(more)
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2013-12-17 15:47:06 -0500

rjc gravatar image

You're specifying 2.2.7.2-1.el6 instead of 1:2.2.7.2-1.el6, which is the actual version.

edit flag offensive delete link more

Comments

No that is the correct version. It wasnt working because the puppet client had the old version. So it was still doing => present instead of the specified version above. Fixing ...(more)

nixgadgets gravatar imagenixgadgets ( 2013-12-17 16:15:11 -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: 2013-12-16 20:27:37 -0500

Seen: 53 times

Last updated: Dec 17 '13