From a3fd97ec40d89011cebd8b3a3c869bcc3383011b Mon Sep 17 00:00:00 2001 From: Scott Lowe Date: Tue, 12 Jan 2016 21:13:25 -0700 Subject: [PATCH] Update Vagrantfile Update Vagrantfile to use full path (derived) to `servers.yml`; fixes an error when using Vagrant commands outside the directory --- consul/Vagrantfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/consul/Vagrantfile b/consul/Vagrantfile index e9fe790..16140a7 100644 --- a/consul/Vagrantfile +++ b/consul/Vagrantfile @@ -13,7 +13,7 @@ require 'yaml' # Read YAML file with VM details (box, CPU, RAM, IP addresses) # Be sure to edit servers.yml to provide correct IP addresses -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|