Skip to content

Instantly share code, notes, and snippets.

View grubernaut's full-sized 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 September 27, 2020 17:57
Blue Green Deploys with Terraform

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:

Verifying that +grubernaut is my blockchain ID. https://onename.com/grubernaut

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:

@grubernaut
grubernaut / apache2_spec.rb
Last active August 29, 2015 14:14
Puppet Things
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 August 29, 2015 14:06
Applescript to copy Spotify Now Playing to clipboard
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