Puppet Hints – passing additional parameters to ensure_packages

PuppetLabs Logo

PuppetLabs Logo

The function “ensure_packages” contained in puppetlabs’ “stdlibs” module offers to pass additional parameters to the underlying function “ensure_resource” in form of a hash.

Since I was not able to find a distinct example here is a working piece of code:

Maybe it’s just me, and the rest of the world does not need this – but who knows.

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.