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"
Augeas is a tool to surgically edit Unix configuration files. The augeas type in Puppet allows changing single entries in a configuration file instead of deploying the whole file as a monolithic blob.
Augeas understands a lot of different configuration file formats but you may need to write Augeas code yourself if you want to parse your own file format. I didn't find an Emacs major mode for Augeas so I started writing my own. It is currently still at an early stage. You can find the code at https://github.com/smoeding/emacs-augeas-mode.