Update Vagrantfile

Add Ruby commands to derive full path to `servers.yml`; this allows
user to run Vagrant commands when not in the same directory as the
Vagrantfile.
This commit is contained in:
Scott Lowe 2016-01-12 21:22:58 -07:00
parent e5cba68726
commit 2cea197b74

View file

@ -17,7 +17,7 @@ USER_DATA = File.join(File.dirname(__FILE__), "user-data")
# 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'))
# Use config from YAML file to write out templates for etcd overrides
template = File.join(File.dirname(__FILE__), 'etcd.defaults.erb')