Posts by: Thomas Mitchell

Which Version of a BOSH Release is Deployed Where?

It’s time for some good jq magic. I need to know where a specific release is deployed in the current environment. I also need to know which version of that release is deployed in each spot. Specifically, I’m checking for shield, but you can change RELEASE_NAME to whatever you want. export BOSH_ENVIRONMENT=my-bosh-directorexport RELEASE_NAME=shield bosh deployments

Thomas Mitchell Profile Image

Posted by:
Thomas Mitchell

Read More ➝
Creating an App Registration in Azure

You want to automate the deployment of your Azure infrastructure. Great! But now you need to create an account for your automation to access Azure’s API. Azure implements these in the form of what they call App Registrations. In order to create one, you will need access to create accounts in Azure Active Directory. If

Thomas Mitchell Profile Image

Posted by:
Thomas Mitchell

Read More ➝
Formatting Terraform Lists as Strings

I’m deep in the weeds again. I’m inside of a YAML document inlined inside of a heredoc inside of a bash script that exists as a string inside of a heredoc inside of a Terraform configuration file written in HCL. It’s not my finest work, but it’s up there. To complete this masterpiece, I simply

Thomas Mitchell Profile Image

Posted by:
Thomas Mitchell

Read More ➝
Doomsday: x509 Certificate Expiration Monitoring

As of this writing, it is 2019, and the tech-world has generally accepted TLS as a “good thing.” So let’s put certificates on our servers to make sure we’re talking to the right servers, and let’s also put certificates on our clients to make sure that the right clients are talking to the right servers.

Thomas Mitchell Profile Image

Posted by:
Thomas Mitchell

Read More ➝
Use Latest Major Stemcell Version

Hey. Sometimes new major stemcells come out and they use newer versions of Linux and they break your stuff. Sometimes it’s your fault that your thing doesn’t work. Sometimes we blame Elon Musk because we have trouble taking responsibility for our mistakes. We’re sorry, Elon. The point is, you don’t want to use the latest

Thomas Mitchell Profile Image

Posted by:
Thomas Mitchell

Read More ➝
Cancel All Bosh Tasks

Sometimes, the bosh task table gets backed up with pending tasks. Maybe a stuck task created a pile-up. Or maybe your monitoring system blasted the BOSH API during an update and now you have 200 tasks all with a created_at of the Unix epoch. Who knows? That’s not what this is about. This is about

Thomas Mitchell Profile Image

Posted by:
Thomas Mitchell

Read More ➝
Deploying Cloud Foundry Locally with bosh-lite with Mac-OSX (Late 2015)

Quinn wrote a guide on how to do exactly this over a year ago, and that can be found here:https://blog.starkandwayne.com/2014/12/16/running-cloud-foundry-locally-with-bosh-lite/ Cloud Foundry’s process for getting started on bosh-lite evidently has not changed too much over the past year, because Quinn’s guide is still perfectly valid. However, over the past couple days I’ve been spending quite

Thomas Mitchell Profile Image

Posted by:
Thomas Mitchell

Read More ➝