For a long time the Puppet language had only limited support for repetition and loops. Puppet 4 and the Future Parser eventually added new functions to evaluate a block multiple times. This article is the first in a series that will illustrate the new functions and also present some use-cases.Continue reading "Repetition in Puppet"
Inline templates do not seem to be prevalent in Puppet code. I like to share a code pattern that I occasionally use when an ERB template just seems to be too much for the task at hand.Continue reading "Powerful Puppet Inline Templates"
The Augeas type in Puppet allows changing specific parts in a file while leaving the rest unmanaged. I use it frequently to set shell variables in files associated with an application package. Sometimes the value must be quoted and getting the correct quoting with Augeas never works the first time for me. So here is my little cheat sheet for setting quoted values with Augeas.Continue reading "Quoted Shellvars in Augeas"