Rancher-Swarm/Vagrantfile

30 lines
1.1 KiB
Ruby
Raw Normal View History

2015-02-22 03:49:04 +00:00
# -*- mode: ruby -*-
# vi: set ft=ruby :
# To enable rsync folder share change to false
$rsync_folder_disabled = true
2015-02-22 03:49:04 +00:00
# All Vagrant configuration is done below. The "2" in Vagrant.configure
# configures the configuration version (we support older styles for
# backwards compatibility). Please don't change it unless you know what
# you're doing.
Vagrant.configure(2) do |config|
config.vm.box = "rancheros"
2015-03-07 08:12:15 +00:00
config.vm.box_url = "http://cdn.rancher.io/vagrant/x86_64/prod/rancheros_v0.1.2_virtualbox.box"
2015-02-22 03:49:04 +00:00
config.ssh.username = "rancher"
config.vm.provider "virtualbox" do |vb|
vb.check_guest_additions = false
vb.functional_vboxsf = false
vb.memory = "1024"
end
# Disabling compression because OS X has an ancient version of rsync installed.
# Add -z or remove rsync__args below if you have a newer version of rsync on your machine.
config.vm.synced_folder ".", "/opt/rancher", type: "rsync",
rsync__exclude: ".git/", rsync__args: ["--verbose", "--archive", "--delete", "--copy-links"],
disabled: $rsync_folder_disabled
2015-02-22 03:49:04 +00:00
end