Skip to content

Instantly share code, notes, and snippets.

@hex108
Created December 17, 2018 14:19
Show Gist options
  • Save hex108/758140f784182286f4527566073bd5f9 to your computer and use it in GitHub Desktop.
Save hex108/758140f784182286f4527566073bd5f9 to your computer and use it in GitHub Desktop.
Vagrantfile for vxlan test env.
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