Skip to content

Instantly share code, notes, and snippets.

@bennettp123
Forked from anthonysterling/Vagrantfile
Last active September 10, 2018 02:54
Show Gist options
  • Save bennettp123/e34f3cbfb469890515cc4747478b466e to your computer and use it in GitHub Desktop.
Save bennettp123/e34f3cbfb469890515cc4747478b466e to your computer and use it in GitHub Desktop.
Handy Vagrantfile for IE testing with Vagrant.
# Usage: IE={box} vagrant up
#
# Eg. IE=ie6.xp vagrant up
boxes = {
"ie6.xp" => "http://aka.ms/ie6.xp.vagrant",
"ie7.vista" => "http://aka.ms/ie7.vista.vagrant",
"ie8.xp" => "http://aka.ms/ie8.xp.vagrant",
"ie8.win7" => "http://aka.ms/ie8.win7.vagrant",
"ie9.win7" => "http://aka.ms/ie9.win7.vagrant",
"ie10.win7" => "http://aka.ms/ie10.win7.vagrant",
"ie10.win8" => "http://aka.ms/ie10.win8.vagrant",
"ie11.win7" => "http://aka.ms/ie11.win7.vagrant",
"ie11.win81" => "http://aka.ms/ie11.win81.vagrant",
"msedge.win10" => "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