Douglas Garstang wrote:
> I'm trying to install/upgrade to a specific version of an RPM with
> puppet. I'm getting the following:
>
> Dec 14 17:58:40 papp1 puppetd[8438]:
> (//Node[papp1.fr.xxx.com]/Elements::Setup[tfel0]/Package[tf-elements-core-tfel0]/ensure)
> change from 1.0-1.tf to 14.3-0.tf failed: Could not update: Failed to
> update to version 14.3-0.tf, got version 1.0-1.tf instead at
> /etc/puppet/modules/elements/manifests/init.pp:31
>   
This means the support tools (yum/rpm I guess in your case) couldn't 
find the version specified (14.3-0.tf), and the latest version it could 
find was (1.0-1.tf). At least this is how I interpreted the message 
(maybe someone could confirm).

What you should check:

1. Can yum install the version you want (14.3.....)? (try it from 
command line on the client)
2. Is yum the default package provider for puppet?
        run puppet on the client like this
          puppetd --test --debug --trace --verbose
       and check the output for the default package manager. (maybe 
paste this here)

For 1 the solution is to configure yum so it can find the package. As I 
am not familiar with yum I can't help you beyond this point if this is 
the case.
For 2 well a lot of things can happen so post the debug output from the 
client. :-)


Silviu

> My manifest at line 31 has:
>
>     package {
>         "tf-elements-core-${name}":
>             ensure => "14.3-0.tf";
>     }
>
> The puppet documentation implies I can put a version number where I
> have it. I currently have version 1.0-1 of the RPM installed.
>
> papp1 ~:# rpm -qa | grep tf-elements-core
> tf-elements-core-tfel0-1.0-1.tf
>
> I haven't tried it yet, as it's ugly, but might this work?
>
>     package {
>         "tf-elements-core-${name}-14.3-0.tf":
>             ensure => installed;
>     }
>
> I prefer the first though.
>
> Doug.
>
> --
>
> You received this message because you are subscribed to the Google Groups 
> "Puppet Users" group.
> To post to this group, send email to puppet-us...@googlegroups.com.
> To unsubscribe from this group, send email to 
> puppet-users+unsubscr...@googlegroups.com.
> For more options, visit this group at 
> http://groups.google.com/group/puppet-users?hl=en.
>
>
>   

--

You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-us...@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.


Reply via email to