Created
May 26, 2022 08:47
-
-
Save svmihar/2f8fef1c636c226b7ae412e3f36c5e5b to your computer and use it in GitHub Desktop.
default
This file contains hidden or 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 : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
VM_BOX="generic/centos7" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.define "dev1" do |dev1| | |
dev1.vm.box = VM_BOX | |
#dev1.vm.network "public_network" | |
dev1.vm.network :private_network, ip: "192.168.56.101" | |
dev1.vm.network :forwarded_port, guest:22, host:10122, id: "ssh" | |
dev1.vm.synced_folder "./data/","/home/dev1" | |
dev1.vm.provider :virtualbox do |v| | |
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant-root", "1" ] | |
v.memory = 1024 | |
v.cpus = 2 | |
v.customize ["modifyvm", :id, "--name", "dev1"] | |
end | |
end | |
config.vm.define "dev2" do |dev2| | |
dev2.vm.box = VM_BOX | |
#dev2.vm.network "public_network" | |
dev2.vm.network :private_network, ip: "192.168.56.102" | |
dev2.vm.network :forwarded_port, guest:22, host:10222, id: "ssh" | |
dev2.vm.synced_folder "./data/","/home/dev2" | |
dev2.vm.provider :virtualbox do |v| | |
v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"] | |
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/vagrant-root", "1" ] | |
v.memory = 1024 | |
v.cpus = 2 | |
v.customize ["modifyvm", :id, "--name", "dev2"] | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment