Vagrantfile 1.55 KB
Newer Older
1 2 3 4 5 6
# -*- mode: ruby -*-
# vi: set ft=ruby :

MACHINES =
  { "ubuntu1204-i386" =>
      { :box       => "chef/ubuntu-12.04-i386",
Austin Seipp's avatar
Austin Seipp committed
7
        :provision => "utils/vagrant/bootstrap-deb.sh"
8 9 10
      },
    "ubuntu1204-amd64" =>
      { :box       => "chef/ubuntu-12.04",
Austin Seipp's avatar
Austin Seipp committed
11
        :provision => "utils/vagrant/bootstrap-deb.sh"
12 13 14
      },
    "centos65-i386" =>
      { :box       => "chef/centos-6.5-i386",
Austin Seipp's avatar
Austin Seipp committed
15
        :provision => "utils/vagrant/bootstrap-rhel.sh"
16 17 18
      },
    "centos65-amd64" =>
      { :box       => "chef/centos-6.5",
Austin Seipp's avatar
Austin Seipp committed
19
        :provision => "utils/vagrant/bootstrap-rhel.sh"
20 21 22
      },
    "debian74-i386" =>
      { :box       => "chef/debian-7.4-i386",
Austin Seipp's avatar
Austin Seipp committed
23
        :provision => "utils/vagrant/bootstrap-deb.sh"
24 25 26
      },
    "debian74-amd64" =>
      { :box       => "chef/debian-7.4",
Austin Seipp's avatar
Austin Seipp committed
27
        :provision => "utils/vagrant/bootstrap-deb.sh"
28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50
      }
  }

VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
  MACHINES.each_pair do |name, opts|
    config.vm.define name do |c|
      c.vm.box = opts[:box]
      c.vm.network "public_network"
      c.vm.provision :shell, :path => opts[:provision]
      c.vm.provider "virtualbox" do |vb|
        vb.gui = false; vb.memory = 4096; vb.cpus = 2
        vb.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
      end
      c.vm.provider "vmware_workstation" do |vb|
        vb.gui = false; vb.vmx["memsize"]  = "4096"; vb.vmx["numvcpus"] = "2"
      end
      c.vm.provider "vmware_fusion" do |vb|
        vb.gui = false; vb.vmx["memsize"]  = "4096"; vb.vmx["numvcpus"] = "2"
      end
    end
  end
end