downgrading package with puppet

306 views
Skip to first unread message

tetlika

unread,
Feb 25, 2016, 3:49:08 PM2/25/16
to Puppet Users
hi, I have a problem  with puppet sw management

when I do in puppet:

package { "nginx" :
        ensure => "1.8.1-1"
}

the nginx version 1.8.1 is successfully installed and everything is fine

when later on the same machine I do:

package { "nginx" :
        ensure => "1.8.0-1"
}


I receive error:

ensure: change from absent to present failed: Could not find package nginx-1.8.0-1


why is that happening?

thx

Hristo Mohamed

unread,
Feb 25, 2016, 3:54:41 PM2/25/16
to puppet...@googlegroups.com
Which provider are you using? Are you sure this version is available?

Hristo

--
You received this message because you are subscribed to the Google Groups "Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/ef6a3794-9d82-449e-a2a3-9f2988265140%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

tetlika

unread,
Feb 25, 2016, 4:01:57 PM2/25/16
to Puppet Users
using yum

100% sure its available, generally this error happens each time I try to do downgrade of any package

четвер, 25 лютого 2016 р. 17:54:41 UTC+2 користувач Hristo Mohamed написав:

jcbollinger

unread,
Feb 26, 2016, 2:07:42 PM2/26/16
to Puppet Users


On Thursday, February 25, 2016 at 10:01:57 AM UTC-6, tetlika wrote:
using yum

100% sure its available,


Enable --debug logging on the agent to see, among other things, the actual yum command that Puppet is executing, and yum's output.  I think you'll find that yum disagrees with you about the package's availability.


John

Vladislav Rusanov

unread,
Feb 26, 2016, 2:46:58 PM2/26/16
to puppet...@googlegroups.com
Hi!

YUM provider has problems with downgrade - https://groups.google.com/forum/#!topic/puppet-users/3Nkx1gtcGyc
Maybe it is a good idea to manually remove (and then run puppet) or downgrade the package, cause downgrading is not a good idea for any package manager…

Best Regards!

Leonardo

unread,
Feb 26, 2016, 4:08:24 PM2/26/16
to Puppet Users
Try "yum downgrade package-version".
It works?

Maybe the problem is yum and not puppet.

Leonardo
Reply all
Reply to author
Forward
0 new messages