R.I. Pienaar

A Puppet 4 Hiera Based Node Classifier


When I first wrote Hiera I included a simple little hack called hiera_include() that would do a Array lookup and include everything it found. I only included it even because include at the time did not take Array arguments. In time this has become quite widely used and many people do their node classification using Read More

Puppet 4 Type Aliases


Back when I first took a look at Puppet 4 features I explored the new Data Types and said: Additionally I cannot see myself using a Struct like above in the argument list – to which Henrik says they are looking to add a typedef thing to the language so you can give complex Struc’s Read More

The Puppet 4 Lookup Function


Puppet 4 has a new lookup subsystem exposed to the user in a few places: The lookup() function Automatic parameter lookups Configuring the automatic parameter lookups via Data in Modules I’ve not been able to figure out everything the docs have been trying to say about this function but it turns out they were copied Read More

params.pp in Puppet 4


I do not like the params.pp pattern. Puppet 4 has brought native Data in Modules that’s pretty awesome and to a large extend it removes the traditional need for params.pp. Thing is, we kind of do still need some parts of params.pp. To understand this we have to consider what the areas of concern params.pp Read More

The Resource Wrapper Pattern in Puppet 4


One tends to need to wrap resources quite often in Puppet and prior to Puppet 4 this was extremely annoying and resulted in a high maintenance burden, but in Puppet 4 this has significantly improved so I thought I’ll write a quick post about that. Why wrap resources? The example I’ll show here is going Read More

Newer Posts
Older Posts