Created
February 12, 2014 15:56
-
-
Save daemonza/8958203 to your computer and use it in GitHub Desktop.
Serf vagrant play area
This file contains 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
# Basic Debian box with serf installed in $PATH | |
# Werner Gillmer <[email protected]> | |
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