Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View aharden's full-sized avatar

Alex Harden aharden

View GitHub Profile
@aharden
aharden / Vagrantfile
Last active May 26, 2020 17:16 — forked from glenfant/Vagrantfile
A Vagrantfile for MacOS or Windows host, making an Ububtu 20.04 playground for the latest Docker and Docker-compose.
# -*- mode: ruby -*-
# vi: set ft=ruby :
#
# Reference: https://gist.githubusercontent.com/glenfant/7772f48aa17eb4e09d4a62390825eade/raw/b7284e30c3ba3a6ba9e03bb37abb65eb193842f7/Vagrantfile
# Docker playground for MacOS and Windows
# =======================================
#
# - Installs the latest Docker + Docker-compose
# - Uses faster NFS files sync on Mac OS
# - Uses faster SMB files share on Windows
@aharden
aharden / multi_account_vpc_peering.tf
Created November 19, 2019 23:05
Multi-account AWS VPC Peering Terraform Configuration
# Manage a peering connection between VPCs in separate AWS accounts.
# Configuration must be run with an IAM role or credentials that can assume an administrative role in the accepting VPC's account.
# Inspired by: https://www.terraform.io/docs/providers/aws/r/vpc_peering_accepter.html
provider "aws" {
region = "us-east-1"
allowed_account_ids = ["123456789012"]
# Requester's credentials.
}
@aharden
aharden / gpg_ignore.pp
Created January 10, 2017 20:36
Patch Puppet Enterprise 2016.2 to allow Debian-based pe_repo-managed agent repositories to ignore expired GPG key
# remove after PE 2016.4 or later is deployed
if $pe_build == '2016.2.1' {
file_line { 'Allow PE 2016.2.1 Debian pe_repos to ignore old GPG key':
ensure => 'present',
path => '/opt/puppetlabs/puppet/modules/pe_repo/templates/deb.bash.erb',
replace => true,
match => " DEBIAN_FRONTEND=noninteractive apt-get install -y -o Apt::Get::Purge=false -o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef' --no-install-recommends puppet-agent",
line => " DEBIAN_FRONTEND=noninteractive apt-get install -y -o Apt::Get::Purge=false -o Dpkg::Options::='--force-confold' -o Dpkg::Options::='--force-confdef' --no-install-recommends --allow-unauthenticated puppet-agent",
}
}