Skip to content

Instantly share code, notes, and snippets.

View thomasmassmann's full-sized avatar
👨‍💻

Thomas Massmann thomasmassmann

👨‍💻
View GitHub Profile
@thomasmassmann
thomasmassmann / Vagrantfile
Last active August 26, 2018 00:24
Create a vagrant box with chef server provisioning and automatic client and node cleanup on the server when the vagrant box gets destroyed. All necessary api keys and config options are taken from environment variables. The knife.rb must live inside a .chef directory besides the Vagrantfile.
# -*- mode: ruby -*-
# vi: set ft=ruby :
require 'chef'
Chef::Config.from_file(File.join(File.dirname(__FILE__), '.chef', 'knife.rb'))
vms = {
"testbox" => {
:box => "precise64",
:ipaddress => "192.168.33.10",
@thomasmassmann
thomasmassmann / buildout.cfg
Created November 30, 2012 18:11
Dynamic haproxy backends with buildout
[buildout]
backends = 4
parts =
myapp
client
haproxy-build
haproxy-config
supervisor