4

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?

DmitrySemenov
  • 835
  • 2
  • 15
  • 27

1 Answers1

6

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...

ewwhite
  • 197,159
  • 92
  • 443
  • 809
  • 1
    are you sure about MCollective? I think the `package` agent only allows `update` on a single package, not all. – faker Apr 17 '14 at 06:15
  • The Marionette Collective `package` agent can't do that yet, but there are agents for `mco` out there that could do this, see [shellout](https://github.com/slaney/mcollective-plugins/blob/master/agent/shellout.rb) for an example. – dawud Apr 17 '14 at 09:03
  • You can run arbitrary command via `mco` with the right plugins. – ewwhite Apr 17 '14 at 09:44