-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
BENTO-17 passes validation for windows 7 and 2008R2 #15
Changes from 10 commits
ca62867
3ea2803
7b6cfc5
34b9c72
b683ef2
9c114e1
e0ef38f
87bf070
59b11fa
68b425e
1d36faf
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,4 @@ bin/ | |
.bundle/ | ||
iso/ | ||
*.box | ||
virtualfloppy.vfd |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
source :rubygems | ||
|
||
gem "vagrant", "~> 1.0.3" | ||
gem "veewee", ">= 0.3.0.alpha" | ||
gem "vagrant", "~> 1.0.5" | ||
gem "veewee", ">= 0.3.7" | ||
gem "em-winrm" # for windows! | ||
gem "rake" |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,12 +4,10 @@ | |
:disk_format => "VDI", | ||
:disk_size => "40960", | ||
:hostiocache => "off", | ||
:ioapic => "on", | ||
:iso_download_timeout => "1000", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Again moved into new location. Because that is per virtualization technology, and the hope is that we can target more than just Virtualbox eventually. |
||
:kickstart_port => "7122", | ||
:kickstart_timeout => "10000", | ||
:memory_size=> "384", | ||
:pae => "on", | ||
:postinstall_timeout => "10000", | ||
:ssh_guest_port => "22", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why is this removed? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This was moved into https://github.com/hh/bento/blob/BENTO-17/definitions/.common/session.rb#L22 as the location of that config option changed. |
||
:ssh_host_port => "7222", | ||
|
@@ -18,4 +16,11 @@ | |
:ssh_password => "vagrant", | ||
:ssh_user => "vagrant", | ||
:sudo_cmd => "echo '%p'|sudo -S sh '%f'", | ||
:virtualbox => { | ||
:vm_options => { | ||
:ioapic => "on", | ||
:pae => "on" | ||
} | ||
} | ||
|
||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
cmd /C cscript %TEMP%\wget.vbs /url:http://www.opscode.com/chef/install.msi /path:%TEMP%\chef-client.msi | ||
cmd /C msiexec /qn /i %TEMP%\chef-client.msi |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
# with this, we can open the iso, and extract the VBoxWindowsAdditions.exe! | ||
# http://downloads.sourceforge.net/sevenzip/7z920.exe | ||
cmd /c certutil -addstore -f "TrustedPublisher" a:oracle-cert.cer | ||
cmd /c e:\VBoxWindowsAdditions-amd64.exe /S | ||
cmd /c shutdown.exe /r /t 0 /d p:2:4 /c "Vagrant reboot for VBoxWindowsAdditions" | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# This is so we can pass the validation test | ||
cmd /c net use z: \\vboxsrv\veewee-validation | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
require File.dirname(__FILE__) + "/../.common/session.rb" | ||
|
||
WINDOWS_SESSION = | ||
COMMON_SESSION.merge({ :boot_wait => "1", | ||
:boot_cmd_sequence => [''], | ||
:winrm_user => "vagrant", | ||
:winrm_password => "vagrant", | ||
:floppy_files => [ | ||
"Autounattend.xml", | ||
"oracle-cert.cer" | ||
], | ||
:postinstall_files => [ | ||
"install-chef.bat", | ||
"install-vbox.bat", # would be interesting to only include this on vbox | ||
"mount-validation.bat" # maybe test if we are within a vbox vm? | ||
# because this will eventually run on kvm, openstack, etc etc | ||
], | ||
:video_memory_size => '48', | ||
:sudo_cmd => "%f", | ||
:shutdown_cmd => "shutdown /s /t 10 /f /d p:4:1 /c \"Vagrant Shutdown\"" }) | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's do "~> 1.0" here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds fine there