Skip to content

Instantly share code, notes, and snippets.

@Mierdin
Last active August 29, 2015 14:16
Show Gist options
  • Save Mierdin/4bab083cfdefe928f5bd to your computer and use it in GitHub Desktop.
Save Mierdin/4bab083cfdefe928f5bd to your computer and use it in GitHub Desktop.
# -*- mode: ruby -*-
# vi: set ft=ruby :
# Lab for three Linux boxes running Quagga
# Triangle topology
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "trusty64"
config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/trusty/current/trusty-server-cloudimg-amd64-vagrant-disk1.box"
config.vm.define "r1" do |r1|
r1.vm.host_name = "r1"
r1.vm.network "private_network", ip: "192.168.60.11"
r1.vm.network "private_network", ip: "192.168.40.10"
r1.vm.provision "ansible" do |ansible|
ansible.playbook = "configs/ansible/r1config.yml"
end
end
config.vm.define "r2" do |r2|
r2.vm.host_name = "r2"
r2.vm.network "private_network", ip: "192.168.40.11"
r2.vm.network "private_network", ip: "192.168.50.10"
r2.vm.provision "ansible" do |ansible|
ansible.playbook = "configs/ansible/r2config.yml"
end
end
config.vm.define "r3" do |r3|
r3.vm.host_name = "r3"
r3.vm.network "private_network", ip: "192.168.50.11"
r3.vm.network "private_network", ip: "192.168.60.10"
r3.vm.provision "ansible" do |ansible|
ansible.playbook = "configs/ansible/r3config.yml"
end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment