puppet: how to submit command "yum update" to all agents?
5,025
Well, it's super-easy with Puppet Enterprise and MCollective...
But in your case, you're probably going to have to produce a manifest that runs an exec
of /usr/bin/yum -y -q update
.
You can also just create a puppet cron resource to do this on a more sane schedule...
Related videos on Youtube
Author by
DmitrySemenov
Updated on September 18, 2022Comments
-
DmitrySemenov almost 2 years
I'm new to puppet and trying to create manifest which will request all agents to update all currently installed yum packages.
What should be the best way to describe this in manifest?
-
sciurus about 10 yearsSo every time Puppet runs (normally every 30 minutes), you want to update all installed packages?
-
DmitrySemenov about 10 yearsI find a best way, but I don't have enterprise.
-
-
faker about 10 yearsare you sure about MCollective? I think the
package
agent only allowsupdate
on a single package, not all. -
dawud about 10 yearsThe Marionette Collective
package
agent can't do that yet, but there are agents formco
out there that could do this, see shellout for an example. -
ewwhite about 10 yearsYou can run arbitrary command via
mco
with the right plugins.