Tuesday, January 25, 2011

How do I install a yum package group with puppet?

Does puppet have a way to install a yum package group (e.g. 'Development Tools'), besides exec?

  • I couldn't find anything in the Puppet Type Reference for the Package type, so I asked on the Puppet IRC channel on Freenode (#puppet, oddly) and got nothing so I think the answer is "not yet".

    From Andrew H
  • You could handle this through an Puppet Exec Type to execute the necessary group install. I would be sure to include a good onlyif or unless option so that it only executes it when needed or set to refreshonly and trigger it via a Notify so that it is not run every time though. The Exec type will execute the command locally on the puppet client for you provided it is triggered.

0 comments:

Post a Comment