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

Triggering a daemonized puppet agent with SIGUSR1

Day 13 in the #vDM30in30 Pretty quick one, but I thought I’d write it up because I hadn’t heard about it before. So, normally when trying to diagnose a puppet issue, one normally runs puppet agent -t or puppet agent --test. However, the --test flag comes with a set of predefined flags: –test Enable the most common options used for testing. These are ‘onetime’, ‘verbose’, ’no-daemonize’, ’no-usecacheonfailure’, ‘detailed-exitcodes’, ’no-splay’, ‘show_diff’, and ’no-use_cached_catalog’. ...

November 13, 2016 · 3 min · Peter Souter

jmxtrans: What is it and how to configure it

Day 12 in the #vDM30in30 I’ve been investigating getting metrics from the Java parts of Puppet. Puppetserver actually has a dedicated endpoint now, but if you’re on an earlier version you can actually extract the information straight from JMX. I’ve been working on a Vagrant stack to demonstrate this, but I’ve not got it fully working yet, but I’ve made some good progress. I think there’re just a few tweaks left. ...

November 12, 2016 · 4 min · Peter Souter

puppetserver caching

Day 11 in the #vDM30in30 Image Source: http://www.slideshare.net/PuppetLabs/the-puppet-master-on-the-jvm-puppetconf-2014 There is an oft-repeated joke that says that there are two hard things in computer science: cache invalidation, naming things, and off-by-one errors. We’re going to talk about caching with puppet-server. What is Puppet Server puppetserver is a replacement for the previous ruby and passenger engine (aka puppetmasterd) So puppetmaster was the old puppet server, puppetserver is now the current puppet-master. Remember, naming is hard! ...

November 11, 2016 · 3 min · Peter Souter