From 33ccc143b1e4e3833e59f40aa1901b9b293ebed5 Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Tue, 12 Jan 2016 21:16:22 -0700 Subject: [PATCH] Update Vagrantfile Fix Vagrantfile to address error about `servers.yml` not found when running Vagrant commands outside the directory --- debian-generic/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/debian-generic/Vagrantfile b/debian-generic/Vagrantfile index cdf94b9..eacde50 100644 --- a/debian-generic/Vagrantfile +++ b/debian-generic/Vagrantfile @@ -10,7 +10,7 @@ ENV['VAGRANT_VMWARE_CLONE_DIRECTORY'] = '~/.vagrant' require 'yaml' # Read YAML file with VM details (box, CPU, and RAM) -servers = YAML.load_file('servers.yml') +servers = YAML.load_file(File.join(File.dirname(__FILE__), 'servers.yml')) # Create and configure the VMs Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|