Last active
August 7, 2023 16:35
-
-
Save Prajwalprakash3722/d200bf2997dc55e856ca116f53ef1f55 to your computer and use it in GitHub Desktop.
2 ubuntu 22.04 os
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- 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