This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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| |