Skip to content

Instantly share code, notes, and snippets.

@jpogran
Created November 14, 2016 21:04
Show Gist options
  • Select an option

  • Save jpogran/1b086c66dd416eef338cd570e728595a to your computer and use it in GitHub Desktop.

Select an option

Save jpogran/1b086c66dd416eef338cd570e728595a to your computer and use it in GitHub Desktop.
Vagrant.configure("2") do |config|
config.vm.define "win2012r2" do |win2012r2|
win2012r2.vm.box = "win2008r2-x64-vmwarefusion5-nocm"
win2012r2.vm.hostname = "win2012r2"
end
# config.vm.define "win2012r2-orig" do |win2012r2|
# win2012r2.vm.box = "windows2012r2_bare_nocm"
# win2012r2.vm.hostname = "win2012r2"
# end
# config.vm.provision :shell, :path => "shell/choco_install.ps1"
# config.vm.provision :shell, :path => "shell/rubyinstallit.ps1"
# config.vm.provision :shell, :path => "shell/app_install.ps1"
# config.vm.provision :shell, :path => "shell/install_ruby_glenn.ps1"
# config.vm.provision :shell, :path => "shell/ruby_install.ps1"
# config.vm.provision :shell, :path => "shell/ruby193.ps1"
# config.vm.provider :virtualbox do |v, override|
# v.gui = true
# v.linked_clone = true if Vagrant::VERSION =~ /^1.8/
# v.customize ["modifyvm", :id, "--cpus", "2"]
# v.customize ["modifyvm", :id, "--memory", "4024"]
# v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
# v.customize ["modifyvm", :id, "--audio", "none"]
# v.customize ["modifyvm", :id, "--clipboard", "bidirectional"]
# v.customize ["modifyvm", :id, "--usb", "off"]
# override.vm.network :private_network, ip: "192.168.0.12"
# override.vm.network :private_network, ip: "192.168.33.12"
# end
# config.vm.synced_folder "/Users/jpogran/src/puppetlabs/modules", "/puppetlabs/modules"
# config.vm.synced_folder "/Users/jpogran/isos", "/puppetlabs/isos"
config.windows.halt_timeout = 20
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.vm.guest = :windows
config.vm.communicator = "winrm" if Vagrant::VERSION >= '1.6.0'
config.vm.network :forwarded_port, guest: 5985, host: 5985, id: "winrm", auto_correct: true
config.vm.network :forwarded_port, guest: 3389, host: 3389, id: "rdp", auto_correct: true
config.vm.network :forwarded_port, guest: 22, host: 2222, id: "ssh", auto_correct: true
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment