When The Pager Goes Off Part 1

John woke slowly, disturbed by the latent buzz of his phone on vibrate. Funny how that noise was almost a ringtone unto itself. Rolling over and checking his phone confirmed his suspicions: PagerDuty. Opening the message: Alpha1: disk space full 95% He crawled out of bed defiantly — to investigate...

How To Learn Just Enough Ruby For DevOps and Automation

I spoke with a reader recently who is wanting to increase their Ruby proficiency before diving into the Chef side of things. I totally get it. Learning a language can be hard. You read tutorial after tutorial, maybe comparing it other languages you've learned or just trying to wrap your...

5 Ways To Get Help and Get Unstuck

When learning DevOps or System Administration or just general automation, it's easy to get stuck. There's a lot of material out there, and a ton of examples that may or may not relate to your problem. With the abundance of (and potentially mixed) information out there, two problems usually occur:...

How to fix WARNING: No knife configuration file found

WARNING: No knife configuration file found ERROR: Your private key could not be loaded from /etc/chef/client.pem Check your configuration file and ensure that your private key is readable If you're seeing that error and you've been moving your .chef directory around, this is probably why. In order to interact with...

Get the amount of memory in a node from inside a Chef recipe

Every time Chef runs on a node, it'll reset Ohai's special attributes (that's those of the automatic type), and refill them with the new correct values. This is what lets you see the stats of a node inside the management console or on the command line with knife. But what...