Created
December 17, 2018 14:19
-
-
Save hex108/758140f784182286f4527566073bd5f9 to your computer and use it in GitHub Desktop.
Vagrantfile for vxlan test env.
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
Vagrant.configure("2") do |config| | |
config.vm.box = "ubuntu/xenial64" | |
config.vm.define "node0" do |node0| | |
node0.vm.provision :shell, inline: "hostname node0" | |
end | |
config.vm.define "node1" do |node1| | |
node1.vm.provision :shell, inline: "hostname node1" | |
end | |
config.vm.define "node2" do |node2| | |
node2.vm.provision :shell, inline: "hostname node2" | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
echo "sudo su -" >> .bashrc | |
SHELL | |
config.vm.network "private_network", type: "dhcp" | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment