From 2c34c9e69212cc9cade4ecf7107d34b6badc191e Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Tue, 12 Jan 2016 21:26:16 -0700 Subject: [PATCH] Update Vagrantfile Add Ruby commands to Vagrantfile to allow user to run Vagrant commands from a different directory than the Vagrantfile. --- lxd-ovs/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lxd-ovs/Vagrantfile b/lxd-ovs/Vagrantfile index 1ef3280..6734284 100644 --- a/lxd-ovs/Vagrantfile +++ b/lxd-ovs/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|