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

Share:
5,025

Related videos on Youtube

DmitrySemenov
Author by

DmitrySemenov

Updated on September 18, 2022

Comments

  • DmitrySemenov
    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
      sciurus about 10 years
      So every time Puppet runs (normally every 30 minutes), you want to update all installed packages?
    • DmitrySemenov
      DmitrySemenov about 10 years
      I find a best way, but I don't have enterprise.
  • faker
    faker about 10 years
    are you sure about MCollective? I think the package agent only allows update on a single package, not all.
  • dawud
    dawud about 10 years
    The Marionette Collective package agent can't do that yet, but there are agents for mco out there that could do this, see shellout for an example.
  • ewwhite
    ewwhite about 10 years
    You can run arbitrary command via mco with the right plugins.