Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
I don't work for HashiCorp anymore

Jake Champlin grubernaut

🏠
I don't work for HashiCorp anymore
View GitHub Profile
@grubernaut
grubernaut / README.md
Last active Sep 27, 2020
Blue Green Deploys with Terraform
View README.md

Terraform Blue-Green Deploy example

Note: Use Terraform Modules as functions!!!

This will allow you to create a "networking" module, and use those outputs to populate the security groups, access zones, and subnet id's for your other modules.

Using autoscaling groups with a fixed size will protect you from AWs bugs or instance outages. This way an instance that dies, will be replaced so you always maintain the expected amount of instances for that service.

Workflow:

View gist:a330d5d0b19288e19862
Verifying that +grubernaut is my blockchain ID. https://onename.com/grubernaut
View keybase.md

Keybase proof

I hereby claim:

  • I am grubernaut on github.
  • I am grubernaut (https://keybase.io/grubernaut) on keybase.
  • I have a public key whose fingerprint is E431 5FA2 F14A 7C21 0963 EB0A DC31 F419 58EF 4AC2

To claim this, I am signing this object:

View apache2_spec.rb
require 'spec_helper'
describe 'apache2', :type => :class do
context 'defaults' do
let :pre_condition do
"apache2::site { 'foo':
enabled => true,
config => 'test'
}
"
@grubernaut
grubernaut / NowPlaying.scpt
Last active Aug 29, 2015
Applescript to copy Spotify Now Playing to clipboard
View NowPlaying.scpt
tell application "System Events"
set myList to (name of every process)
end tell
if myList contains "Spotify" then
tell application "Spotify"
if player state is stopped then
set output to "Stopped"
else
set trackname to name of current track
set artistname to artist of current track
You can’t perform that action at this time.