Skip to content

Instantly share code, notes, and snippets.

@ninetails
Forked from anthonysterling/Vagrantfile
Created February 27, 2018 10:30
Show Gist options
  • Save ninetails/58f0996ff0430bed677beeae79c50ba2 to your computer and use it in GitHub Desktop.
Save ninetails/58f0996ff0430bed677beeae79c50ba2 to your computer and use it in GitHub Desktop.
Handy Vagrantfile for IE testing with Vagrant.
# Usage: IE={box} vagrant up
#
# Eg. IE=XPIE6 vagrant up
#
# Password: Passw0rd!
boxes = {
"XPIE6" => "http://aka.ms/ie6.xp.vagrant",
"XPIE8" => "http://aka.ms/ie8.xp.vagrant",
"VistaIE7" => "http://aka.ms/ie7.vista.vagrant",
"Win7IE8" => "http://aka.ms/ie8.win7.vagrant",
"Win7IE9" => "http://aka.ms/ie9.win7.vagrant",
"Win7IE10" => "http://aka.ms/ie10.win7.vagrant",
"Win7IE11" => "http://aka.ms/ie11.win7.vagrant",
"Win8IE10" => "http://aka.ms/ie10.win8.vagrant",
"Win8IE11" => "http://aka.ms/ie11.win81.vagrant",
"Win10Edge" => "http://aka.ms/msedge.win10.vagrant",
}
unless boxes.has_key? ENV['IE']
abort('Invalid box supplied')
end
Vagrant.configure("2") do |config|
config.vm.box = ENV['IE']
config.vm.box_url = boxes[ ENV['IE'] ]
config.vm.guest = :windows
config.vm.boot_timeout = 1
config.vm.communicator = "winrm"
config.vm.provider "virtualbox" do |vm|
vm.gui = true
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment