summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2020-03-24 00:07:14 +0100
committerMichael Adam <obnox@samba.org>2020-03-25 22:32:23 +0100
commitfe58c01733ccc466cf6f63d8a412c8736d5cdf31 (patch)
tree34cef57f9d3d87e54a880bae3f1b05e9d2c02a55
parent40e4362289e10589e6b69284e0871d89b4d4ebaa (diff)
Make the network subnet to use configurable
Signed-off-by: Michael Adam <obnox@samba.org>
-rw-r--r--vagrant/Vagrantfile3
1 files changed, 2 insertions, 1 deletions
diff --git a/vagrant/Vagrantfile b/vagrant/Vagrantfile
index 2d60e52..23ebc45 100644
--- a/vagrant/Vagrantfile
+++ b/vagrant/Vagrantfile
@@ -6,6 +6,7 @@ NODES = 2
DISKS = 2
NODE_RAM = 1024
NODE_CPUS = 2
+NETWORK_BASE = "192.168.122"
#LIBVIRT_STORAGE_POOL = "data"
Vagrant.configure("2") do |config|
@@ -19,7 +20,7 @@ Vagrant.configure("2") do |config|
(0..NODES-1).each do |i|
config.vm.define "storage#{i}" do |storage|
storage.vm.hostname = "storage#{i}"
- storage.vm.network :private_network, ip: "192.168.122.10#{i}"
+ storage.vm.network :private_network, ip: "#{NETWORK_BASE}.10#{i}"
(0..DISKS-1).each do |d|
storage.vm.provider :virtualbox do |vb|
vb.customize [ "createhd", "--filename", "disk-#{i}#{d}.vdi", "--size", 10*1024 ]