From e5cba68726fcab100922d71f87a7ed79a8808c9a Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Tue, 12 Jan 2016 21:20:18 -0700 Subject: [PATCH] Update Vagrantfile Add Ruby commands to determine full path to `servers.yml` to address errors when running Vagrant commands outside the directory --- ubuntu-generic/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ubuntu-generic/Vagrantfile b/ubuntu-generic/Vagrantfile index cdf94b9..eacde50 100644 --- a/ubuntu-generic/Vagrantfile +++ b/ubuntu-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|