-
Notifications
You must be signed in to change notification settings - Fork 4
/
Vagrantfile
55 lines (38 loc) · 1.68 KB
/
Vagrantfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# -*- mode: ruby -*-
# vi: set ft=ruby :
folder1 = '~/Documents/ISO_BOX_etc/binaries'
Vagrant.configure("2") do |config|
# config.vm.box = "alex_win2k8"
# config.vm.box = "windows2008r2"
config.vm.box = "win2k8r2_11_18"
# config.vbguest.auto_update = true # experiment with vagrant-vbguest plugin
# config.omnibus.chef_version = :latest
config.vm.synced_folder folder1, "c:/parent_#{File.basename(folder1)}" if File.exists? File.expand_path(folder1)
# config.vm.guest = :windows
# New veature in vagrant 1.6. Makes windows much easier.
config.vm.communicator = "winrm"
config.vm.guest = :windows #needed for vagrant omnibus to work (1.4.1 has a bug https://github.com/chef/vagrant-omnibus/issues/90)
config.windows.halt_timeout = 25
config.winrm.username = "vagrant"
config.winrm.password = "vagrant"
config.winrm.max_tries = 30
# # Port forward WinRM and RDP
# config.vm.network :forwarded_port, { :guest=>3389, :host=>3389, :id=>"rdp"}#, :auto_correct=>true }
# config.vm.network :forwarded_port, { :guest=>5985, :host=>5985, :id=>"winrm"}#, :auto_correct=>true }
# config.vm.network :private_network, ip: "192.168.33.10" # needed for Consultants/Contractors to spin up vagrant on VPN.
# Example for VirtualBox:
config.vm.provider :virtualbox do |vb|
vb.gui = true
vb.name = "reboot_demo"
vb.customize [
"modifyvm", :id,'--memory', '1536','--clipboard', 'bidirectional','--usb', 'on'
# ,'--usbehci', 'on'
]
end
config.vm.provision :chef_solo do |chef|
chef.cookbooks_path = "~/Documents/Projects/win_reboots"
# chef.add_recipe "pattern7"
chef.add_recipe "reboot_demo::pattern7"
chef.log_level = :info
end
end