PSA: Puppet Error 400

When you get this error- Puppet (err): Could not retrieve catalog from remote server: Error 400 on SERVER: Could not find class MODULE_NAME for NODE.FQDN at /etc/puppet/manifests/sites.pp:XXX on node NODE.FQDN Don’t be silly like me and spend ages looking for an issue in a Puppet manifest file when there isn’t one… Instead, make sure that …

Python chdir Context Manager

Why a chdir context manager doesn’t already exist in Python 2.7 I’m not sure, and I’ve not even bothered to check if it’s in any of the Python 3.x released… let’s be honest… I havent met a single person who is dedicated to using the latest 3.x release over the stable 2.7 release- but I …

A Git server is what you need.

Version control is one of those things that everyone who has anything to do with code, no matter whether it be hacky and hold things together like sticky-tape and bubblegum or the most beautiful software to ever be seen by man, should know, or at least have a basic understanding of. I used Git as …

Using Puppet on your Local Machine

If you’ve not used or heard of Puppet before, treat yourself to the severely in-depth documentation over at Puppet Labs– I can’t do an explanation justice so go to their website and check it out (and then come back here). I’ve been installing (and re-installing) Ubuntu a lot recently, and I’m getting really sick of …