|
| 1 | +# -*- mode: ruby -*- |
| 2 | +# vi: set ft=ruby : |
| 3 | + |
| 4 | +# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! |
| 5 | +VAGRANTFILE_API_VERSION = "2" |
| 6 | + |
| 7 | +Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| |
| 8 | + # All Vagrant configuration is done here. The most common configuration |
| 9 | + # options are documented and commented below. For a complete reference, |
| 10 | + # please see the online documentation at vagrantup.com. |
| 11 | + |
| 12 | + config.vm.box = "saucy64" |
| 13 | + |
| 14 | + # The url from where the 'config.vm.box' box will be fetched if it |
| 15 | + # doesn't already exist on the user's system. |
| 16 | + config.vm.box_url = "http://cloud-images.ubuntu.com/vagrant/saucy/current/saucy-server-cloudimg-amd64-vagrant-disk1.box" |
| 17 | + |
| 18 | + config.vm.provision :shell, :path => "bootstrap.sh" |
| 19 | + config.vm.provision :shell, privileged: false, :path => "setup-mininet.sh" |
| 20 | + config.vm.provision :shell, privileged: false, :path => "setup-pox.sh" |
| 21 | + config.vm.provision :shell, privileged: false, :path => "setup-pyretic.sh" |
| 22 | + config.vm.provision :shell, privileged: false, :path => "clean-shutdown.sh" |
| 23 | + |
| 24 | + # Create a forwarded port mapping which allows access to a specific port |
| 25 | + # within the machine from a port on the host machine. In the example below, |
| 26 | + # accessing "localhost:8080" will access port 80 on the guest machine. |
| 27 | + # config.vm.network :forwarded_port, guest: 80, host: 8080 |
| 28 | + |
| 29 | + # If true, then any SSH connections made will enable agent forwarding. |
| 30 | + # Default value: false |
| 31 | + # config.ssh.forward_agent = true |
| 32 | + |
| 33 | + config.vm.provider :virtualbox do |vb| |
| 34 | + # Don't boot with headless mode |
| 35 | + # vb.gui = true |
| 36 | + |
| 37 | + # Use VBoxManage to customize the VM. For example to change memory: |
| 38 | + vb.customize ["modifyvm", :id, "--memory", "4096"] |
| 39 | + end |
| 40 | + |
| 41 | +end |
0 commit comments