Skip to content

Instantly share code, notes, and snippets.

@Prajwalprakash3722
Last active August 7, 2023 16:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Prajwalprakash3722/d200bf2997dc55e856ca116f53ef1f55 to your computer and use it in GitHub Desktop.
Save Prajwalprakash3722/d200bf2997dc55e856ca116f53ef1f55 to your computer and use it in GitHub Desktop.
2 ubuntu 22.04 os
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure("2") do |config|
config.vm.box = "generic/ubuntu2204"
config.vm.network "private_network", type: "dhcp"
(1..2).each do |i|
config.vm.define "ubuntu#{i}" do |node|
node.vm.provider "libvirt" do |vb|
vb.memory = "1024"
end
node.vm.network "forwarded_port", guest: 80, host: 808#{i}"
node.vm.provision "shell", inline: "echo Hello from Ubuntu #{i}!"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment