Skip to content

Instantly share code, notes, and snippets.

source 'https://rubygems.org'
gem 'berkshelf', '~> 3.3.0'
gem 'test-kitchen', '~> 1.4.2'
gem 'kitchen-vagrant', '~> 0.18.0'
gem 'rake', '>= 10.4.2'
gem 'foodcritic', '>= 5.0.0'
gem 'rubocop', '>= 0.34.1'
gem 'chefspec', '~> 4.3'
gem 'serverspec', '~> 2.23.1'
@jwieringa
jwieringa / Makefile
Created March 31, 2016 02:57 — forked from pgporada/Makefile
Terraform Makefile
.ONESHELL:
.PHONEY: help set-env init update plan plan-destroy show graph apply output taint
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
set-env:
@if [ -z $(ENVIRONMENT) ]; then\
echo "ENVIRONMENT was not set"; exit 10;\
fi
- What do Etcd, Consul, and Zookeeper do?
- Service Registration:
- Host, port number, and sometimes authentication credentials, protocols, versions
numbers, and/or environment details.
- Service Discovery:
- Ability for client application to query the central registry to learn of service location.
- Consistent and durable general-purpose K/V store across distributed system.
- Some solutions support this better than others.
- Based on Paxos or some derivative (i.e. Raft) algorithm to quickly converge to a consistent state.
- Centralized locking can be based on this K/V store.
@jwieringa
jwieringa / Dockerfile
Created February 22, 2016 20:44 — forked from csexton/Dockerfile
Minimal Dockerfile for Alpine Linux with configurable ruby helper script
FROM alpine:3.3
MAINTAINER Christopher Sexton <[email protected]>
ENV RUBY_VERSION 2.3.0
ENV RUBY_DOWNLOAD_SHA1 96e620e38af351c8da63e40cfe217ec79f912ba1
ENV BASE_PACKAGES bash curl gmp git
ENV BUILD_PACKAGES build-base libc-dev linux-headers openssl-dev postgresql-dev libxml2-dev libxslt-dev
RUN apk update && \
@jwieringa
jwieringa / gist:c1987aa61571ddae7016
Created February 17, 2016 21:06 — forked from afair/gist:3803895
PostgreSQL and Pgpool Architecture

Hey! I saw this has been indexed by the search engines. It is a first draft of a post I ended up publishing on my blog at: Scaling PostgreSQL With Pgpool and PgBouncer

Thanks for stopping by!

PostgreSQL and Pgpool Architecture

@jwieringa
jwieringa / notes.md
Created December 4, 2015 16:57 — forked from dbouwman/notes.md
Notes from Nodevember 2015

#Nodevember Nodes

Yahuda Keynote

  • basically a ember 101 walk-thru
  • fastboot early 2016 inc client-side re-hydration

Elijah Manor - Code Smells

  • switch statement --> strategy pattern
  • eslint allows custom plugins
  • enable/disabled rules @ file level, or block
@jwieringa
jwieringa / coreos.tf
Created November 12, 2015 14:10 — forked from bitglue/coreos.tf
Deploy a CoreOS cluster with Terraform
variable "cluster-size" {
description = "Number of CoreOS machines to deploy"
}
variable "region" {
description = "AWS region in which to deploy"
default = "us-east-1"
}
variable "coreos-ami" {
@jwieringa
jwieringa / gist:4c35a4fe9676df78afcd
Created October 30, 2015 00:39 — forked from ralph-tice/gist:3d6e5b2076cbc2900aaa
terraform for 3 AZ VPC with NAT instance with autorecovery
###########
# Variables
###########
variable "aws_key_name" {
default = "mykeypair"
}
variable "region" {
default = "eu-west-1"
}
@jwieringa
jwieringa / .gitignore
Created October 20, 2015 23:43 — forked from karmi/.gitignore
Example Nginx configurations for Elasticsearch
nginx/
!nginx/.gitkeep
!nginx/logs/.gitkeep
src/
tmp/
@jwieringa
jwieringa / crash.log
Last active October 18, 2015 19:28
terraform 0.6.4 crash log using vsphere provider
➜ terraform git:(master) ✗ terraform apply
vsphere_virtual_machine.web: Creating...
disk.#: "" => "1"
disk.0.size: "" => "40"
domain: "" => "vsphere.local"
memory: "" => "4096"
name: "" => "terraform_web"
network_interface.#: "" => "1"
network_interface.0.ip_address: "" => "<computed>"
network_interface.0.label: "" => "10.112.70.0"