mirror of
https://codeberg.org/scottslowe/learning-tools.git
synced 2026-03-11 09:04:37 +00:00
Update Vagrantfile
Update Vagrantfile with additional Ruby commands to derive full path to `servers.yml`. This will allow users to run Vagrant commands when not in the same directory as the Vagrantfile.
This commit is contained in:
parent
2c34c9e692
commit
2ea30e7850
1 changed files with 1 additions and 1 deletions
2
ssh-bastion/Vagrantfile
vendored
2
ssh-bastion/Vagrantfile
vendored
|
|
@ -12,7 +12,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|
|
||||
|
|
|
|||
Loading…
Reference in a new issue