forked from vfarcic/cloud-provisioning
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
23 lines (22 loc) · 660 Bytes
/
Vagrantfile
File metadata and controls
23 lines (22 loc) · 660 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
if (/cygwin|mswin|mingw|bccwin|wince|emx/ =~ RUBY_PLATFORM) != nil
config.vm.synced_folder ".", "/vagrant", mount_options: ["dmode=700,fmode=600"]
else
config.vm.synced_folder ".", "/vagrant"
end
(1..3).each do |i|
config.vm.define "swarm-node-#{i}" do |d|
d.vm.box = "ubuntu/xenial64"
d.vm.hostname = "swarm-node-#{i}"
d.vm.network "private_network", ip: "10.100.192.20#{i}"
d.vm.provider "virtualbox" do |v|
v.memory = 1024
end
end
end
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.scope = :box
end
end