For a recent project I was challenged with the need to prove an AWS EC2 instance was a puppet server without access to the instance. Thankfully Puppet Enterprise DB API has exactly what I needed. However I found the examples in the documentation online where not good enough for my needs. more
Recently I ran into an automation situation where I needed to be able to execute a puppet agent run by an EC2 instanceID fact. Since 2015 we now have structured facts instead of a simpler flat hierarchy. Here is how you use the new structured facts with MCO commands like ping and runonce. more
Here is a short HOWTO which results in a custom Amazon AWS EC2 AMI image with the Puppet Enterprise agent installed and setup to connect to the Puppet master server. This method uses a 3rd party tool called Packer.io which greatly simplifies and automates the AMI build process in a scriptable and pragmatic way. This is a very easy way to build hypervisor OS template images with the Puppet agent pre-installed for AWS, Docker, Google Cloud, OpenStack, Parallels, QEMU, Virtualbox, or VMWare. more
Here is an interview I did with Puppet Labs on my automation work with PhoenixNAP. With a combination of VMware, Puppet Enterprise, and a Git repo based WarDeployer system I wrote releases transformed from a heartache performance into a pull request. Roll backs are just as elegant.
I’ve written and published a Puppet module to load AWS EC2 tags into puppet as facts. So now when you tag your EC2 instance the tag can be a tag usable by Puppet. AWS cli tools are automatically installed and setup. you just have to provide your key and secret with read access to the tags. An example policy is provided. more