-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathVagrantfile
More file actions
30 lines (22 loc) · 841 Bytes
/
Vagrantfile
File metadata and controls
30 lines (22 loc) · 841 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# Specifying the box we wish to use
config.vm.box = "generic/ubuntu2004"
config.vm.network "private_network", type: "dhcp"
config.vm.synced_folder ".", "/hyperledger", type: "nfs", nfs_version: 4, linux__nfs_options: ['rw','no_subtree_check','no_root_squash','async']
config.vm.provision :shell, path: "./helperScripts/vagrantFixDns.sh"
config.vm.provision :shell, path: "./helperScripts/provisionMachines.sh"
# Iterating the loop for three times
(1..3).each do |i|
# Defining VM properties
config.vm.define "swarmnode#{i}" do |node|
node.vm.hostname = "swarmnode#{i}"
# Specifying the provider as VirtualBox and naming the VM's
config.vm.provider "libvirt" do |node|
node.memory = "4096"
node.cpus = 1
end
end
end
end