Skip to content
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

Add Windows 2012R2 server definitions. #107

Merged
merged 2 commits into from
Nov 3, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
source "https://rubygems.org"

gem "vagrant", :git => 'https://github.com/mitchellh/vagrant.git', :tag => 'v1.2.7'
gem "veewee", :git => 'https://github.com/jedi4ever/veewee.git', :ref => '4e5d50de48'
gem "vagrant", :git => 'https://github.com/mitchellh/vagrant.git', :tag => 'v1.3.5'
gem "veewee", "~> 0.3.12"
gem "vagrant-windows", "~> 1.2.1"
gem "em-winrm" # for windows!
gem "rake"
104 changes: 52 additions & 52 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,29 +1,9 @@
GIT
remote: https://github.com/jedi4ever/veewee.git
revision: 4e5d50de4866472bd3e7060157ac573457196760
ref: 4e5d50de48
specs:
veewee (0.3.7)
ansi (~> 1.3.0)
childprocess
fission (= 0.4.0)
fog (~> 1.8)
grit
highline
i18n
json
net-ssh (>= 2.2.0)
popen4 (~> 0.1.2)
progressbar
ruby-vnc (~> 1.0.0)
thor (~> 0.15)

GIT
remote: https://github.com/mitchellh/vagrant.git
revision: 7ec0ee1d00a916f80b109a298bab08e391945243
tag: v1.2.7
revision: a40522f5fabccb9ddabad03d836e120ff5d14093
tag: v1.3.5
specs:
vagrant (1.2.7)
vagrant (1.3.5)
childprocess (~> 0.3.7)
erubis (~> 2.7.0)
i18n (~> 0.6.0)
Expand All @@ -42,30 +22,30 @@ GEM
gyoku (>= 0.4.0)
nokogiri (>= 1.4.0)
ansi (1.3.0)
builder (3.2.0)
builder (3.2.2)
childprocess (0.3.9)
ffi (~> 1.0, >= 1.0.11)
diff-lcs (1.2.4)
em-winrm (0.5.4)
eventmachine (= 1.0.0.beta.3)
eventmachine (~> 1.0.0)
mixlib-log (>= 1.3.0)
uuidtools (~> 2.1.1)
winrm (~> 1.1.0)
erubis (2.7.0)
eventmachine (1.0.0.beta.3)
excon (0.22.1)
ffi (1.7.0)
eventmachine (1.0.3)
excon (0.28.0)
ffi (1.9.3)
fission (0.4.0)
CFPropertyList (~> 2.0.17)
fog (1.11.1)
fog (1.18.0)
builder
excon (~> 0.20)
excon (~> 0.28.0)
formatador (~> 0.2.0)
json (~> 1.7)
mime-types
multi_json (~> 1.0)
net-scp (~> 1.1)
net-ssh (>= 2.1.3)
nokogiri (~> 1.5.0)
nokogiri (~> 1.5)
ruby-hmac
formatador (0.2.4)
grit (2.5.0)
Expand All @@ -74,34 +54,39 @@ GEM
posix-spawn (~> 0.3.6)
gssapi (1.0.3)
ffi (>= 1.0.1)
gyoku (1.0.0)
gyoku (1.1.0)
builder (>= 2.1.2)
highline (1.6.19)
httpclient (2.2.0.2)
highline (1.6.20)
httpclient (2.3.4.1)
httpi (0.9.7)
rack
i18n (0.6.4)
json (1.7.7)
libxml-ruby (2.6.0)
i18n (0.6.5)
json (1.8.1)
libxml-ruby (2.7.0)
little-plugger (1.1.3)
log4r (1.1.10)
logging (1.6.2)
logging (1.8.1)
little-plugger (>= 1.1.3)
mime-types (1.23)
multi_json (>= 1.3.6)
mime-types (1.25)
mini_portile (0.5.2)
mixlib-log (1.6.0)
net-scp (1.1.0)
multi_json (1.8.2)
net-scp (1.1.2)
net-ssh (>= 2.6.5)
net-ssh (2.6.7)
nokogiri (1.5.9)
net-ssh (2.6.8)
nokogiri (1.6.0)
mini_portile (~> 0.5.0)
nori (1.1.5)
open4 (1.3.0)
os (0.9.6)
popen4 (0.1.2)
Platform (>= 0.4.0)
open4 (>= 0.4.0)
posix-spawn (0.3.6)
progressbar (0.20.0)
progressbar (0.21.0)
rack (1.5.2)
rake (10.0.4)
rake (10.1.0)
ruby-hmac (0.4.0)
ruby-vnc (1.0.1)
rubyntlm (0.1.1)
Expand All @@ -114,16 +99,31 @@ GEM
nori (~> 1.0)
wasabi (~> 1.0)
thor (0.18.1)
uuidtools (2.1.3)
vagrant-windows (1.2.1)
uuidtools (2.1.4)
vagrant-windows (1.2.3)
winrm (~> 1.1.1)
veewee (0.3.12)
ansi (~> 1.3.0)
childprocess
fission (= 0.4.0)
fog (~> 1.8)
grit
highline
i18n
json
net-ssh (>= 2.2.0)
os (~> 0.9.6)
popen4 (~> 0.1.2)
progressbar
ruby-vnc (~> 1.0.0)
thor (~> 0.15)
wasabi (1.0.0)
nokogiri (>= 1.4.0)
winrm (1.1.2)
winrm (1.1.3)
gssapi (~> 1.0.0)
httpclient (~> 2.2.0.2)
logging (~> 1.6.1)
nokogiri (~> 1.5.0)
httpclient (~> 2.2, >= 2.2.0.2)
logging (~> 1.6, >= 1.6.1)
nokogiri (~> 1.5)
rubyntlm (~> 0.1.1)
savon (= 0.9.5)
uuidtools (~> 2.1.2)
Expand All @@ -136,4 +136,4 @@ DEPENDENCIES
rake
vagrant!
vagrant-windows (~> 1.2.1)
veewee!
veewee (~> 0.3.12)
164 changes: 164 additions & 0 deletions definitions/windows-2012r2-standard/Autounattend.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<servicing></servicing>
<settings pass="windowsPE">
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>en-US</UILanguage>
</SetupUILanguage>
<InputLocale>en-US</InputLocale>
<SystemLocale>en-US</SystemLocale>
<UILanguage>en-US</UILanguage>
<UserLocale>en-US</UserLocale>
</component>
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Size>20000</Size>
<Type>Primary</Type>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Extend>false</Extend>
<Format>NTFS</Format>
<Label>Windows 2012R2</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<DiskID>0</DiskID>
<WillWipeDisk>true</WillWipeDisk>
</Disk>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallFrom>
<MetaData wcm:action="add">
<Key>/IMAGE/NAME</Key>
<Value>Windows Server 2012 R2 SERVERSTANDARD</Value>
</MetaData>
</InstallFrom>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
</OSImage>
</ImageInstall>
<UserData>
<AcceptEula>true</AcceptEula>
<FullName>Vagrant</FullName>
<Organization>Vagrant</Organization>
</UserData>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Password>
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>Administrator</Username>
</AutoLogon>
<ComputerName>vagrant-2012</ComputerName>
<RegisteredOrganization>Vagrant</RegisteredOrganization>
<RegisteredOwner>Vagrant</RegisteredOwner>
<TimeZone>UTC</TimeZone>
<ProductKey>W3GGN-FT8W3-Y4M27-J84CP-Q3VJ9</ProductKey>
</component>
<component name="Microsoft-Windows-Security-SPP-UX" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SkipAutoActivation>true</SkipAutoActivation>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Password>
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<Username>Administrator</Username>
</AutoLogon>
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<Order>1</Order>
<RequiresUserInput>true</RequiresUserInput>
<CommandLine>cmd.exe /c winrm quickconfig -q</CommandLine>
<Description>winrm quickconfig -q</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<Order>2</Order>
<CommandLine>cmd.exe /c winrm set winrm/config/winrs @{MaxMemoryPerShellMB="300"}</CommandLine>
<RequiresUserInput>true</RequiresUserInput>
<Description>winrm memory</Description>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c winrm set winrm/config @{MaxTimeoutms="1800000"}</CommandLine>
<Description>winrm timeout</Description>
<Order>3</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c winrm set winrm/config/service @{AllowUnencrypted="true"}</CommandLine>
<Description>winrm encryption</Description>
<Order>4</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>winrm set winrm/config/service/auth @{Basic="true"}</CommandLine>
<Description>winrm basic auth</Description>
<Order>5</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>cmd.exe /c netsh advfirewall firewall set rule name="Windows Remote Management (HTTP-In)" profile=public protocol=tcp localport=5985 remoteip=localsubnet new remoteip=any</CommandLine>
<Description>winrm firewall</Description>
<Order>6</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
<SynchronousCommand wcm:action="add">
<CommandLine>powershell -Command "Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Force"</CommandLine>
<Description>fix powershell remote exec policy</Description>
<Order>7</Order>
<RequiresUserInput>true</RequiresUserInput>
</SynchronousCommand>
</FirstLogonCommands>
<OOBE>
<HideEULAPage>true</HideEULAPage>
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE>
<NetworkLocation>Home</NetworkLocation>
<ProtectYourPC>1</ProtectYourPC>
<HideOnlineAccountScreens>true</HideOnlineAccountScreens>
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen>
<HideLocalAccountScreen>true</HideLocalAccountScreen>
</OOBE>
<UserAccounts>
<AdministratorPassword>
<Value>dgBhAGcAcgBhAG4AdABBAGQAbQBpAG4AaQBzAHQAcgBhAHQAbwByAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</AdministratorPassword>
<LocalAccounts>
<LocalAccount wcm:action="add">
<Password>
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value>
<PlainText>false</PlainText>
</Password>
<Description>Vagrant User</Description>
<DisplayName>vagrant</DisplayName>
<Group>Administrators</Group>
<Name>vagrant</Name>
</LocalAccount>
</LocalAccounts>
</UserAccounts>
<ShowWindowsLive>false</ShowWindowsLive>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/users/administrator/documents/install.wim#Windows Server 2012R2 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>
Loading