Skip to content

Instantly share code, notes, and snippets.

View axelquack's full-sized avatar

Axel Quack axelquack

View GitHub Profile
$hosts_table = {
:dbm => "192.168.86.101",
:app1 => "192.168.86.102",
:app2 => "192.168.86.103",
:lb => "192.168.86.104",
}
def bootstrap(config, host)
config.vm.box = "lucid64"
config.vm.network $hosts_table[host]
@Draiken
Draiken / vagrantfile
Created June 30, 2011 17:53
my vagrantfile
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "vendor/cookbooks/vagrant_base"
chef.log_level = :debug
chef.add_recipe "apt"
chef.add_recipe "build-essential"
chef.add_recipe "networking_basic"
chef.add_recipe "openssl"
chef.add_recipe "git"
@evansd
evansd / postinstall.sh
Created June 28, 2011 21:30
postinstall sript from vagrant example box (having it somewhere web-accessible is easiest way to get it on to newly created VMs)
# Apt-install various things necessary for Ruby, guest additions,
# etc., and remove optional things to trim down the machine.
apt-get -y update
apt-get -y remove apparmor
apt-get -y install linux-headers-$(uname -r) build-essential
apt-get -y install zlib1g zlib1g-dev libxml2 libxml2-dev libxslt-dev libssl-dev openssl libreadline5-dev
apt-get clean
# Remove this file to avoid dhclient issues with networking
rm -f /etc/udev/rules.d/70-persistent-net.rules
@jedi4ever
jedi4ever / gist:838373
Created February 22, 2011 08:29
Bootstrap Freebsd with veewee
#http://www.freebsd.org/doc/en_US.ISO8859-1/articles/remote-install/installation.html
dd if=/dev/zero of=/dev/ad4 count=2
#bsdlabel -w -B /dev/ad4
sysctl kern.geom.debugflags=16
#http://forum.nginx.org/read.php?23,146311,146451
# Init the disk with an MBR
gpart create -s mbr ad4
# Create a BSD container
def absperf_chef(config)
config.vm.provisioner = :chef_server
config.chef.chef_server_url = 'https://api.opscode.com/organizations/absperf'
config.chef.validation_client_name = "absperf-validator"
config.chef.validation_key_path = File.expand_path(File.dirname(__FILE__) + '/config/absperf-validator.pem')
config.chef.log_level = :info
end
Vagrant::Config.run do |config|