Using custom functions in Puppet templates

Friday, January 1st, 2010

This eventually required a support ticket to figure out, so I’m documenting it here in case it’s useful to others. The problem: You have a puppet function you find useful. At this point custom functions are really easy to create and distribute via modules so there’s really no reason not to be using them. However, [...]

Puppet Module Patterns

Monday, July 13th, 2009

I’ve been playing a lot with Puppet recently, and have been really focusing on getting a core set of modules in place. I found myself using a few module patterns over and over, so I thought I’d write them down and keep an updated list. /base and /site Our puppet modules are stored in 2 [...]

Managing volatile files with puppet

Wednesday, April 15th, 2009

I’m managing Linux HA (heartbeat2) from Puppet and I had a problem. There is a file called ‘cib.xml’ used by heartbeat which I needed to manage. For a variety of boring reasons, when you make changes to this file, you must have a number in it which is the highest the app has ever seen. [...]