Hi, > On 6. May 2020, at 02:17, Shivabalaji <nakkasrini...@gmail.com> wrote: > > Hi Team, > I want to run yum updated every time, when I run puppet update. How do I add > yum update command?
You can use Puppet to create a cron job which runs the yum update. https://forge.puppet.com/puppet/cron <https://forge.puppet.com/puppet/cron> or https://forge.puppet.com/puppetlabs/cron_core <https://forge.puppet.com/puppetlabs/cron_core> You will never run yum update within Puppet. Why: Puppet is declarative configuration management. That means that you describe the desired state of your systems and not which actions to run on systems, If you want to run something regular: then use cron! Hth, Martin -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/158AD9C8-1F3D-40AF-A51E-AF7AF02E292D%40gmail.com.