infra-as-code/customer0/Vagrantfile

19 lines
596 B
Ruby

Vagrant.configure("2") do |config|
config.ssh.insert_key = false
config.ssh.private_key_path = ["./.ssh/id_rsa","~/.vagrant.d/insecure_private_key"]
config.vm.define "bloated-debian-web01" do |web01|
web01.vm.box = "ubuntu/focal64"
web01.vm.hostname = "bloated-debian-web01"
web01.vm.network :private_network, ip: "192.168.56.11"
web01.vm.provision "file", source: "./.ssh/id_rsa.pub", destination: "~/.ssh/authorized_keys"
web01.vm.provider "virtualbox" do |vb|
vb.memory = "1024"
vb.gui = false
vb.name = "bloated-debian-web01"
end
end
end