From eaae510a41546f2e35b8326a0f6da48f7ee19e6d Mon Sep 17 00:00:00 2001 From: Eliezer Croitoru Date: Tue, 6 Jun 2023 23:16:25 +0300 Subject: [PATCH] 5 --- Vagrantfile | 5 +++++ net | 2 +- provider | 1 + 3 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 provider diff --git a/Vagrantfile b/Vagrantfile index adf460f..0cedc72 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -10,6 +10,11 @@ $VM_VCPU = File.readlines('vmcpu').first.chomp.to_i $BOX = File.readlines('box').first.chomp +$PROVIDER = File.readlines('provider').first.chomp + +if $PROVIDER =~ /hyperv|virtualbox/ + ENV["VAGRANT_DEFAULT_PROVIDER"] = $PROVIDER +end # Will not work on Hyper-V #$VM_DISK_SIZE = File.readlines('disksize').first.chomp diff --git a/net b/net index dd66622..3ce4ea7 100644 --- a/net +++ b/net @@ -1 +1 @@ -172-20-20-net +VMs_OUT \ No newline at end of file diff --git a/provider b/provider new file mode 100644 index 0000000..32da35e --- /dev/null +++ b/provider @@ -0,0 +1 @@ +hyperv