Update Vagrantfile

Update Vagrantfile to use full path (derived) to `servers.yml`; fixes
an error when using Vagrant commands outside the directory
This commit is contained in:
Scott Lowe 2016-01-12 21:13:25 -07:00
parent e4002ed43e
commit a3fd97ec40

2
consul/Vagrantfile vendored
View file

@ -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|