Running Puppet acceptance tests in Docker in Travis

Day 4 in the #vDM30in30 One of the things that comes up a lot with Puppet code is testing, particularly acceptance testing. Just like with regular code, you want to make sure that changes to Puppet are not going to break the standard use-case for your module. Travis has been a boon for open-source testing. For a while, Travis was only for the syntax, linting and rspec tests. But in the last year they’ve added the ability to have Docker running in a Travis job. ...

November 4, 2016 · 13 min · Peter Souter

How I accidentally helped find a showstopper bug in Ruby

Day 3 in the #vDM30in30 It all started with a hanging build… https://travis-ci.org/voxpupuli/puppet-nginx/builds/166701701 We were having an issue with a hanging build with mocked tests for Facter in the Nginx module for Vox Pupuli. Since I was the last person who touched it, I took responsibility for the issue and dug in. The code was a basic unit test for checking Ruby code to determine the version of nginx installed: ...

November 3, 2016 · 3 min · Peter Souter

Some thoughts on maintaining OSS that has an official "competitor"

Day 2 in the #vDM30in30 I’ve been maintaining and merging PR’s on the Tugboat repo since about 2013. I was looking to play around with DigitalOcean, as I’d heard it was a cool upstart alternative to AWS, with cheap, SSD cloud machines, very cool for someone like me who likes tweaking and playing with new operating systems. I cut my teeth on a lot of new Ruby testing and techniques, like webmock, aruba for command line testing and how to DRY-up repetitive methods to make code easier to maintain. ...

November 2, 2016 · 4 min · Peter Souter

An Omnibus package for hiera_explain

Day 1 in the #vDM30in30 So, recently I was working with someone who was having issues with hiera lookups not working. Debugging hiera can be a bit of a pain, because it’s not super good at explaining what’s going wrong. Luckily, Ben Ford, former PSE, now Education person at Puppet and generally awesome dude has made an awesome tool to do just that: hiera_explain It’s a way more verbose and explanatory way of doing everything, and the person I was working it loved it when I showed it on my test machine. ...

November 1, 2016 · 5 min · Peter Souter

Day 0: #vDM30in30

So Rob Nelson raved about #vDM30in30, which is a pretty cool idea to encourage yourself to blog. http://discoposse.com/2015/10/31/brace-yourselves-vdm30in30-is-coming/ Rules are pretty simple: Anyone can participate 30 posts in 30 days – no specification of when you post, so it can be 5 in a day with 4 rest days 🙂 Post to Twitter with #vDM30in30 hashtag so that people can follow along It’s difficult, but super helpful for spurring creativity It’s fun! No, seriously, it is a lot of fun being a part of this Word counts don’t matter Subject is up to you Have fun! Follow along on Twitter by using the #vDM30in30 So I decided to sign-up this year, as I’ve got a bunch of ideas and drafts that have been left half-done, and this is the perfect excuse to hold me accountable and get me blogging some more. ...

October 31, 2016 · 1 min · Peter Souter