mirror of
https://github.com/khuedoan/homelab.git
synced 2025-02-26 06:29:58 +07:00
docs: run Vagrant without changing working directory
This commit is contained in:
parent
738236c7d2
commit
88c79594e8
@ -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
2
metal/Vagrantfile
vendored
@ -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"
|
||||
|
Loading…
Reference in New Issue
Block a user