You may use a syntax like this
package
{ "resource-name-aka-in-puppet-name":
       name =>"debian-package-name",
..................
}

Second check the naming of packages beacause your package probably has a 
different name than the debian one.


Silviu

ELTigre wrote:
> Thanks Eric for your soon answer.. BUT, suppose I have a puppet client
> which has collectd 4.4.2 already installed and when it gets the new
> catalog (to install version 4.7.2), puppet gives an error saying
> there's a conflict between collectd 4.7.2 and collectd 4.4.2 and it
> does not install the latest version.   So, I tried to remove the old
> package and install the newone in the same class but I couldn't
> because you can notcreate duplicate resources wutj the same name.
>
>
> My question is:
>
> How can I remove/purge the old collectd (4.4.2) and install the new
> version using package resource?
>
> On Aug 28, 3:06 pm, Eric Heydrick <eric...@speakeasy.net> wrote:
>   
>> Use ensure => latest to install the newest version. Use ensure =>
>> "version", e.g. ensure => "4-7.2", to install a specific version of a
>> package. Seehttp://reductivelabs.com/trac/puppet/wiki/TypeReference#id374
>> for details.
>>
>> -Eric
>>
>> On Fri, 28 Aug 2009, ELTigre wrote:
>>
>>     
>>> I have debian lenny  puppet clients who use two repositories of
>>> packages, the main from debian OS, and another with some new deb
>>> files.
>>>       
>>> The problem?
>>>       
>>> I have two versions of the same package, for example:
>>> collectd-4.4.2 from debian formally repository and
>>> collectd-4-7.2 from the other repository (collectd latest version).
>>>       
>>> My question:
>>>       
>>> How can I  configure, in puppetmaster,  the packages resources to
>>> force my puppet clients to use the latest version or any other version
>>> avalilable?
>>>       
>>> regards,
>>> Israel
>>>       
> >
>   


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to puppet-users@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