-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #221 from 030/208-windows-upload
[GH-208] Use Packer and Vagrant in order to test N3DR on Windows.
- Loading branch information
Showing
12 changed files
with
467 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,4 +17,7 @@ vendor | |
.vscode | ||
*.zip | ||
coverage.txt | ||
*.snap.xdelta3 | ||
*.snap.xdelta3 | ||
.vagrant | ||
virtualbox* | ||
*.exe |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
Vagrant.require_version ">= 2.2.18" | ||
|
||
Vagrant.configure("2") do |config| | ||
config.vm.provider "virtualbox" do |v| | ||
v.gui = true | ||
v.customize ['setextradata', :id, 'GUI/ScaleFactor', '2.0'] | ||
v.customize ["setextradata", "global", "GUI/SuppressMessages", "all" ] | ||
v.customize ["modifyvm", :id, "--clipboard", "bidirectional"] | ||
v.customize ["modifyvm", :id, "--memory", "2048"] | ||
v.customize ["modifyvm", :id, "--cpus", "2"] | ||
end | ||
|
||
config.vm.define "n3dr" do |n3dr| | ||
n3dr.vm.guest = :windows | ||
n3dr.vm.communicator = "winrm" | ||
n3dr.winrm.username = "vagrant" | ||
n3dr.winrm.password = "vagrant" | ||
n3dr.vm.box = "win2016/n3dr" | ||
n3dr.vm.hostname = "n3dr" | ||
n3dr.vm.network "public_network", | ||
ip: ENV['VAGRANT_N3DR_IP'], | ||
bridge: ENV['VAGRANT_N3DR_NETWORK_ADAPTER'] | ||
n3dr.vm.provision "shell", | ||
path: "vagrant/scripts/n3dr.ps1" | ||
n3dr.vm.provision "windows-update", filters: [ | ||
"exclude:$_.Title -like '*Preview*'", | ||
"include:$_.Title -like '*Cumulative Update for *'", | ||
"include:$_.AutoSelectOnWebSites"] | ||
end | ||
|
||
config.vm.define "nexus3" do |nexus3| | ||
nexus3.vm.box = "ubuntu/focal64" | ||
nexus3.vm.hostname = "nexus3" | ||
nexus3.vm.network "public_network", | ||
ip: ENV['VAGRANT_NEXUS3_IP'], | ||
bridge: ENV['VAGRANT_N3DR_NETWORK_ADAPTER'] | ||
nexus3.vm.provision "shell" do |s| | ||
s.path = "vagrant/scripts/nexus3.sh" | ||
s.env = { "N3DR_APT_GPG_SECRET" => ENV['N3DR_APT_GPG_SECRET'] } | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,163 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<unattend xmlns="urn:schemas-microsoft-com:unattend"> | ||
<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"> | ||
<ComputerName>vagrant-win2016</ComputerName> | ||
<RegisteredOrganization>Microsoft</RegisteredOrganization> | ||
<!-- https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/default-time-zones --> | ||
<TimeZone>W. Europe Standard Time</TimeZone> | ||
</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> | ||
<component name="Microsoft-Windows-ServerManager-SvrMgrNc" 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"> | ||
<DoNotOpenServerManagerAtLogon>true</DoNotOpenServerManagerAtLogon> | ||
</component> | ||
<component name="Microsoft-Windows-IE-ESC" 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"> | ||
<IEHardenAdmin>false</IEHardenAdmin> | ||
<IEHardenUser>false</IEHardenUser> | ||
</component> | ||
<component name="Microsoft-Windows-IE-InternetExplorer" 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"> | ||
<SearchScopes> | ||
<Scope wcm:action="add"> | ||
<ScopeDefault>true</ScopeDefault> | ||
<ScopeDisplayName>Google</ScopeDisplayName> | ||
<ScopeKey>Google</ScopeKey> | ||
<ScopeUrl>http://www.google.com/search?q={searchTerms}</ScopeUrl> | ||
</Scope> | ||
</SearchScopes> | ||
<DisableAccelerators>true</DisableAccelerators> | ||
<DisableFirstRunWizard>true</DisableFirstRunWizard> | ||
<Home_Page>about:blank</Home_Page> | ||
</component> | ||
<component name="Microsoft-Windows-TerminalServices-LocalSessionManager" 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"> | ||
<fDenyTSConnections>false</fDenyTSConnections> | ||
</component> | ||
<component name="Microsoft-Windows-TerminalServices-RDP-WinStationExtensions" 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"> | ||
<UserAuthentication>0</UserAuthentication> | ||
</component> | ||
<component name="Networking-MPSSVC-Svc" 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"> | ||
<FirewallGroups> | ||
<FirewallGroup wcm:action="add" wcm:keyValue="RemoteDesktop"> | ||
<Active>true</Active> | ||
<Group>Remote Desktop</Group> | ||
<Profile>all</Profile> | ||
</FirewallGroup> | ||
</FirewallGroups> | ||
</component> | ||
<component name="Microsoft-Windows-OutOfBoxExperience" 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"> | ||
<DoNotOpenInitialConfigurationTasksAtLogon>true</DoNotOpenInitialConfigurationTasksAtLogon> | ||
</component> | ||
</settings> | ||
<settings pass="windowsPE"> | ||
<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"> | ||
<ImageInstall> | ||
<OSImage> | ||
<InstallTo> | ||
<DiskID>0</DiskID> | ||
<PartitionID>1</PartitionID> | ||
</InstallTo> | ||
<InstallFrom> | ||
<MetaData wcm:action="add"> | ||
<Key>/IMAGE/NAME</Key> | ||
<Value>Windows Server 2016 SERVERSTANDARD</Value> | ||
</MetaData> | ||
</InstallFrom> | ||
<WillShowUI>OnError</WillShowUI> | ||
<InstallToAvailablePartition>false</InstallToAvailablePartition> | ||
</OSImage> | ||
</ImageInstall> | ||
<UserData> | ||
<AcceptEula>true</AcceptEula> | ||
<FullName>Vagrant Administrator</FullName> | ||
<Organization>Vagrant Inc.</Organization> | ||
</UserData> | ||
<DiskConfiguration> | ||
<Disk wcm:action="add"> | ||
<CreatePartitions> | ||
<CreatePartition wcm:action="add"> | ||
<Order>1</Order> | ||
<Type>Primary</Type> | ||
<Extend>true</Extend> | ||
</CreatePartition> | ||
</CreatePartitions> | ||
<ModifyPartitions> | ||
<ModifyPartition wcm:action="add"> | ||
<Active>true</Active> | ||
<Extend>false</Extend> | ||
<Format>NTFS</Format> | ||
<Label></Label> | ||
<Letter>C</Letter> | ||
<Order>1</Order> | ||
<PartitionID>1</PartitionID> | ||
</ModifyPartition> | ||
</ModifyPartitions> | ||
<DiskID>0</DiskID> | ||
<WillWipeDisk>true</WillWipeDisk> | ||
</Disk> | ||
<WillShowUI>OnError</WillShowUI> | ||
</DiskConfiguration> | ||
</component> | ||
<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"> | ||
<InputLocale>en-US</InputLocale> | ||
<SystemLocale>en-US</SystemLocale> | ||
<UILanguage>en-US</UILanguage> | ||
<UserLocale>en-US</UserLocale> | ||
</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"> | ||
<UserAccounts> | ||
<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> | ||
<AutoLogon> | ||
<Password> | ||
<Value>dgBhAGcAcgBhAG4AdABQAGEAcwBzAHcAbwByAGQA</Value> | ||
<PlainText>false</PlainText> | ||
</Password> | ||
<Enabled>true</Enabled> | ||
<Username>vagrant</Username> | ||
</AutoLogon> | ||
<OOBE> | ||
<HideEULAPage>true</HideEULAPage> | ||
<HideLocalAccountScreen>true</HideLocalAccountScreen> | ||
<HideOEMRegistrationScreen>true</HideOEMRegistrationScreen> | ||
<HideOnlineAccountScreens>true</HideOnlineAccountScreens> | ||
<HideWirelessSetupInOOBE>true</HideWirelessSetupInOOBE> | ||
<NetworkLocation>Home</NetworkLocation> | ||
<!-- | ||
ProtectYourPC: | ||
1 Specifies the recommended level of protection for your computer. | ||
2 Specifies that only updates are installed. | ||
3 Specifies that automatic protection is disabled. | ||
--> | ||
<ProtectYourPC>3</ProtectYourPC> | ||
</OOBE> | ||
<FirstLogonCommands> | ||
<SynchronousCommand wcm:action="add"> | ||
<CommandLine>cmd.exe /c a:\winrmConfig.bat</CommandLine> | ||
<Description>Configure WinRM</Description> | ||
<Order>3</Order> | ||
<RequiresUserInput>true</RequiresUserInput> | ||
</SynchronousCommand> | ||
</FirstLogonCommands> | ||
</component> | ||
</settings> | ||
<settings pass="offlineServicing"> | ||
<component name="Microsoft-Windows-LUA-Settings" 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"> | ||
<EnableLUA>false</EnableLUA> | ||
</component> | ||
</settings> | ||
<cpi:offlineImage cpi:source="wim:d:/sources/install.wim#Windows Server 2016 SERVERSTANDARD" xmlns:cpi="urn:schemas-microsoft-com:cpi"/> | ||
</unattend> |
Oops, something went wrong.