Ask Your Question

Puppet not installing specified version

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

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" }

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

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 ...
edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

rjc gravatar image

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

edit flag offensive delete link more


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 -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: 2013-12-16 20:27:37 -0600

Seen: 62 times

Last updated: Dec 17 '13