Re: [Puppet Users] Update package (latest) only if installed in Debian

2015-02-24 Thread Charles Yeomans
Probably the simplest approach would be to write an exec resource using the command /usr/bin/apt-get install --only-upgrade for apt packages. Charles Yeomans > On Feb 24, 2015, at 10:47 AM, Ximena Cardinali > wrote: > > I just want to upgrade specific Packages. > > The idea is somethi

Re: [Puppet Users] Update package (latest) only if installed in Debian

2015-02-24 Thread Ximena Cardinali
I just want to upgrade specific Packages. The idea is something like : ensure=>latest, onlyif=>present Cheers, Ximena. On Tuesday, 24 February 2015 16:43:06 UTC+1, David Schmitt wrote: > > On 2015-02-24 16:28, Ximena Cardinali wrote: > > Hello There, > > > > I'm trying to write a module to up

Re: [Puppet Users] Update package (latest) only if installed in Debian

2015-02-24 Thread David Schmitt
On 2015-02-24 16:28, Ximena Cardinali wrote: Hello There, I'm trying to write a module to update certain vulnerable packages in Debian Systems. My idea is to update them only and only if they are *installed*. Is there any exec command or any other tricks that you may know to do that? So far, I'

[Puppet Users] Update package (latest) only if installed in Debian

2015-02-24 Thread Ximena Cardinali
Hello There, I'm trying to write a module to update certain vulnerable packages in Debian Systems. My idea is to update them only and only if they are *installed*. Is there any exec command or any other tricks that you may know to do that? So far, I've got the basics: :$ package { '$pa