docs: run Vagrant without changing working directory

This commit is contained in:
Khue Doan 2021-12-01 22:53:46 +07:00
parent 738236c7d2
commit 88c79594e8
2 changed files with 2 additions and 4 deletions

View File

@ -21,9 +21,7 @@ Change the IP prefix in the Vagrant config to match your LAN setup, for example
Follow the **remaining steps in the [configuration guide](./deployment/configuration.md)**, then create a test VM:
```sh
cd metal
vagrant up
cd ..
VAGRANT_CWD=./metal vagrant up
```
Open the tools container:

2
metal/Vagrantfile vendored
View File

@ -2,7 +2,7 @@
require 'yaml'
ip_prefix = '192.168.1.'
group_vars = YAML.load_file('./group_vars/all.yml')
group_vars = YAML.load_file(File.join(__dir__, './group_vars/all.yml'))
Vagrant.configure("2") do |config|
config.vm.box = "rockylinux/8"