Posts Tagged ‘puppet-tips-and-tricks’

Puppet Tips&Tricks: Running apt-get update only when needed

Tuesday, November 9th, 2010

How to only run apt-get update from puppet if it’s necessary. A small example on how you can make apt-get update only run if a) the machine rebooted and b) something changed in /etc/apt.


Puppet Tips&Tricks: Variable variables

Wednesday, September 1st, 2010

More Puppet Tips&Tricks in our new blog post: This time on Variable variables.


WordPress MU and /etc/hosts file

Monday, July 12th, 2010

Sometimes you need to hack up some code to work around some network problems. Sometimes you’re not very proud of it, but you want to share your solution nonetheless. This is one of those ugly solutions…


Puppet Tips&Tricks: checking if a value is present in an array

Thursday, June 17th, 2010

Although it’s going to be easier in puppet 2.6, this helps you if you want to check if a certain value is present in a puppet array and perform actions based on that.


Puppet Tips&Tricks: testing your regsubst replacings

Monday, March 15th, 2010

Puppet Tips&Tricks: How to test the regex you built for your regsubst invocation. In IRB.


Puppet Tips&Tricks: Converting booleans to numbers

Monday, March 8th, 2010

Puppet Tips&Tricks: A ruby function to be used with puppet for converting boolean values to numerical values. Useful for nagios, for example.


Puppet Tips&Tricks: Getting the version from a package

Monday, March 1st, 2010

Another blog post in our Puppet Tips&Tricks series: Creating a fact which contains the installed version of a package.


Puppet Tips&Tricks: debugging includes and inheritance

Monday, February 22nd, 2010

This is the second post in a our Puppet Tips & Tricks series. This week some tips on simple debugging puppet manifests or modules.