Thanks a lot everyone for the answers! I will try to go for the "/usr/bin/apt-get install --only-upgrade <package-name>" but maybe outside of puppet.
Cheers, Ximena. --- *Ximena E. Cardinali *| Linux Systems Administrator Mobile: +49-1514-72-96-542 | Skype: ximena_cardinali E-mail: [email protected] | Blog: http://ximunix.blogspot.com/ On 25 February 2015 at 11:49, Raphink <[email protected]> wrote: > Hello, > > > It seems that you're trying to use Puppet for actions (upgrading packages > not managed by Puppet) instead of state. This is not what Puppet is for. > You might want to setup unattended-upgrades with the proper Allowed-Origins > and let the system upgrade the packages for you. > > > Cheers, > > Raphaƫl > > > On Tuesday, February 24, 2015 at 4:28:32 PM UTC+1, 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've got the basics: :$ >> >> package { '$package_update': >> name => $package_update, >> ensure => latest, >> } >> >> Can anyone throw me an idea? I will really appreciate it! >> >> Cheers, >> Ximena. >> > -- > You received this message because you are subscribed to a topic in the > Google Groups "Puppet Users" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/puppet-users/MhmLUXre2CI/unsubscribe. > To unsubscribe from this group and all its topics, send an email to > [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/ebbcf94b-079f-4ea3-9bb4-7f35b45672a9%40googlegroups.com > <https://groups.google.com/d/msgid/puppet-users/ebbcf94b-079f-4ea3-9bb4-7f35b45672a9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CAJsWqD2Q2drBsNrE0Gu7eMFQ_QpnPLwqiksSffQaBAbmwE79mw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
