feat(metal): add dev VM for local development or evaluation

This commit is contained in:
Khue Doan
2021-11-25 18:36:34 +07:00
parent 14ab5b24b6
commit 3d73d9efd9
6 changed files with 38 additions and 6 deletions

20
metal/Vagrantfile vendored Normal file
View File

@@ -0,0 +1,20 @@
Vagrant.configure("2") do |config|
config.vm.box = "rockylinux/8"
config.vm.define "test" do |test|
test.vm.network "private_network", ip: "192.168.56.101"
test.vm.hostname = "dev0"
end
config.vm.provider "virtualbox" do |vb|
vb.cpus = 4
vb.memory = "8192"
end
config.vm.provision "file", source: "~/.ssh/id_ed25519.pub", destination: "/tmp/id_ed25519.pub"
config.vm.provision "shell", inline: <<-SHELL
mkdir /root/.ssh
cat /tmp/id_ed25519.pub >> /root/.ssh/authorized_keys
SHELL
end