How to run yum update in puppet config.pp file?

17 views
Skip to first unread message

Shivabalaji

unread,
May 5, 2020, 8:23:08 PM5/5/20
to Puppet Users
Hi Team,
I want to run yum updated every time, when I run puppet update. How do I add yum update command?

Martin Alfke

unread,
May 6, 2020, 2:44:14 AM5/6/20
to puppet...@googlegroups.com
Hi,

On 6. May 2020, at 02:17, Shivabalaji <nakkas...@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.
or

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

Reply all
Reply to author
Forward
0 new messages