Skip to content

Instantly share code, notes, and snippets.

@daemonza
Created February 12, 2014 15:56
Show Gist options
  • Save daemonza/8958203 to your computer and use it in GitHub Desktop.
Save daemonza/8958203 to your computer and use it in GitHub Desktop.
Serf vagrant play area
# Basic Debian box with serf installed in $PATH
# Werner Gillmer <w.gillmer@onehippo.com>
Vagrant::Config.run do |config|
puts "------------------------------------------------"
puts "Serf playground machine "
puts "http://www.serfdom.io/ "
puts "Look at : http://www.serfdom.io/intro/index.html"
puts "------------------------------------------------"
$serf_setup = <<SCRIPT
wget -P /opt https://dl.bintray.com/mitchellh/serf/0.4.1_linux_amd64.zip
apt-get -y install unzip
/usr/bin/unzip /opt/0.4.1_linux_amd64.zip -d /usr/bin
SCRIPT
config.vm.define :serf do |serf|
serf.vm.box = "debian_squeeze_64"
serf.vm.box_url = "http://www.emken.biz/vagrant-boxes/debsqueeze64.box"
serf.vm.host_name = "serf-playground.hosting-test"
serf.vm.network :hostonly, "192.168.80.90"
serf.vm.provision "shell", inline: $serf_setup
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment