Making Docs fun with Dash

Day 19 in the #vDM30in30 I can’t remember who recommended it to me, but I’m loving Dash for documentation on a Mac. What is it? From the horses mouth: Dash is an API Documentation Browser and Code Snippet Manager. Dash stores snippets of code and instantly searches offline documentation sets for 150+ APIs (for a full list, see below). You can even generate your own docsets or request docsets to be included. ...

November 19, 2016 · 3 min · Peter Souter

Travelling Consultant Hardware Essentials

Day 18 in the #vDM30in30 I’ve been a traveling consultant for about 4 years now, and there’s a few pieces of hardware that have made my professional life a lot more enjoyable, tech-wise. Jabra SPEAK 510 A few years ago I learnt about the joy of trying to perform a multi-person standup on one computer. Feedback loops, crappy built in laptop microphones and everyone asking you to mute your mic from background noise when it is working. Not fun. ...

November 18, 2016 · 6 min · Peter Souter

Drying up rspec with shared_examples

Day 17 in the #vDM30in30 Header image taken from https://www.relishapp.com/rspec/rspec-core/docs/example-groups/shared-examples One of the areas where it’s easy to have WET (We Enjoy Typing) code that you want to DRY (Don’t Repeat Yourself) up, is tests. When writing tests for similar areas of code, it’s easy to end up copy and pasting. You have to pieces of functionality that need to be tested in the same way, so why not copy and paste the testing code? ...

November 17, 2016 · 11 min · Peter Souter

GUI's for a Puppet estate

Day 16 in the #vDM30in30 I actually wrote a Stack Overflow answer to this, but I thought I’d formalise and update it a bit. How do the GUI’s work? So, most Puppet GUI’s and Dashboards use reporting from PuppetDB, so as long as you have PuppetDB in your infra they will work, regardless of your Puppet version. It simply takes reports from PuppetDB and performs queries again PuppetDB for searches about information. ...

November 16, 2016 · 2 min · Peter Souter

JMX puppetserver metrics vagrant stack

Day 15 in the #vDM30in30 As I discussed previously, I have been working on getting a Vagrant stack to demonstrate how JMX metrics from puppetserver look. And I succeeded! (kind of…) How it works The main bit is here: puppet_enterprise::profile::master::java_args: Xmx: '2048m' Xms: '2048m' 'Dcom.sun.management.jmxremote.port': '=1099' 'Dcom.sun.management.jmxremote.authenticate': '=false' 'Dcom.sun.management.jmxremote.ssl': '=false' This is hiera config, that sets Puppet Enterprise’s specific Puppet code to configure puppetserver JAVA_ARGS, which will start the JMX service on 1099. From there, we can configure a generic profile to setup jmxtrans on the Puppet master machine: ...

November 15, 2016 · 2 min · Peter Souter