mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
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:
parent
e5cba68726
commit
2cea197b74
1 changed files with 1 additions and 1 deletions
2
docker-swarm-etcd/Vagrantfile
vendored
2
docker-swarm-etcd/Vagrantfile
vendored
|
|
@ -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')
|
||||
|
|
|
|||
Loading…
Reference in a new issue