From 2ea30e785033f4061cea5cd23bc6f810eb206129 Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Tue, 12 Jan 2016 21:27:34 -0700 Subject: [PATCH] Update Vagrantfile Update Vagrantfile with additional Ruby commands to derive full path to `servers.yml`. This will allow users to run Vagrant commands when not in the same directory as the Vagrantfile. --- ssh-bastion/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ssh-bastion/Vagrantfile b/ssh-bastion/Vagrantfile index 2b3d9aa..0960acc 100644 --- a/ssh-bastion/Vagrantfile +++ b/ssh-bastion/Vagrantfile @@ -12,7 +12,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|