@@ -6,23 +6,52 @@ Vagrant::Config.run do |config|
6
6
config . winrm . timeout = 1800 #Set WinRM Timeout in seconds (Default 30)
7
7
8
8
# Configure base box parameters
9
- config . vm . box = "windows-2008r2-standard"
10
- config . vm . box_url = "./windows-2008r2-standard.box"
11
- config . vm . guest = :windows
12
- config . vm . boot_mode = :gui
13
- config . vm . forward_port 3389 , 3390 , :name => "rdp" , :auto => true
14
- config . vm . forward_port 5985 , 5985 , :name => "winrm" , :auto => true
15
- config . vm . customize [ "modifyvm" , :id , "--memory" , 2048 ]
16
- config . vm . customize [ "modifyvm" , :id , "--vram" , 48 ] # I have a big screen
17
- config . vm . customize [ "modifyvm" , :id , "--cpus" , 4 ] # I have an 8 way
18
- config . vm . provision :chef_solo do |chef |
19
- chef . cookbooks_path = "cookbooks"
20
- chef . json = { }
21
- chef . add_recipe ( "windows-fromscratch::_annoyances" )
22
- chef . add_recipe ( "windows-fromscratch::sysinternals" )
23
- chef . add_recipe ( "windows-fromscratch::bginfo" )
24
- chef . add_recipe ( "windows-fromscratch::_ie_annoyances" )
25
- chef . add_recipe ( "windows-fromscratch::domain_controller" )
9
+ config . vm . define :dc do |dc |
10
+ dc . vm . host_name = "dc"
11
+ dc . vm . box = "windows-2008r2-standard"
12
+ dc . vm . box_url = "./windows-2008r2-standard.box"
13
+ dc . vm . guest = :windows
14
+ dc . vm . boot_mode = :gui
15
+ dc . vm . forward_port 3389 , 3390 , :name => "rdp" , :auto => true
16
+ dc . vm . forward_port 5985 , 5985 , :name => "winrm" , :auto => true
17
+ dc . vm . customize [ "modifyvm" , :id , "--memory" , 2048 ]
18
+ dc . vm . customize [ "modifyvm" , :id , "--vram" , 48 ] # I have a big screen
19
+ dc . vm . customize [ "modifyvm" , :id , "--cpus" , 4 ] # I have an 8 way
20
+ dc . vm . network :hostonly , "1.1.1.2"
21
+ dc . vm . provision :chef_solo do |chef |
22
+ chef . cookbooks_path = "cookbooks"
23
+ chef . json = { }
24
+ chef . add_recipe ( "windows-fromscratch::_annoyances" )
25
+ chef . add_recipe ( "windows-fromscratch::sysinternals" )
26
+ chef . add_recipe ( "windows-fromscratch::bginfo" )
27
+ chef . add_recipe ( "windows-fromscratch::_ie_annoyances" )
28
+ # domain_controller forces a reboot!
29
+ chef . add_recipe ( "windows-fromscratch::domain_controller" )
30
+ chef . add_recipe ( "windows-fromscratch::setup_winrm" )
31
+ end
26
32
end
27
33
34
+ # Configure base box parameters
35
+ config . vm . define :member do |member |
36
+ member . vm . host_name = "member"
37
+ member . vm . box = "windows-2008r2-standard"
38
+ member . vm . box_url = "./windows-2008r2-standard.box"
39
+ member . vm . guest = :windows
40
+ member . vm . boot_mode = :gui
41
+ member . vm . forward_port 3389 , 3390 , :name => "rdp" , :auto => true
42
+ member . vm . forward_port 5985 , 5985 , :name => "winrm" , :auto => true
43
+ member . vm . customize [ "modifyvm" , :id , "--memory" , 2048 ]
44
+ member . vm . customize [ "modifyvm" , :id , "--vram" , 48 ] # I have a big screen
45
+ member . vm . customize [ "modifyvm" , :id , "--cpus" , 4 ] # I have an 8 way
46
+ member . vm . network :hostonly , "1.1.1.3"
47
+ member . vm . provision :chef_solo do |chef |
48
+ chef . cookbooks_path = "cookbooks"
49
+ chef . json = { }
50
+ chef . add_recipe ( "windows-fromscratch::_annoyances" )
51
+ chef . add_recipe ( "windows-fromscratch::sysinternals" )
52
+ chef . add_recipe ( "windows-fromscratch::bginfo" )
53
+ chef . add_recipe ( "windows-fromscratch::_ie_annoyances" )
54
+ chef . add_recipe ( "windows-fromscratch::setup_winrm" )
55
+ end
56
+ end
28
57
end
0 commit comments