Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
P
packer-windows
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Bob Tanner
packer-windows
Commits
94cb757f
Commit
94cb757f
authored
Nov 12, 2018
by
Philip Armstrong
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use https everywhere possible.
parent
6c04e957
Changes
13
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
23 additions
and
23 deletions
+23
-23
scripts/chef.bat
scripts/chef.bat
+2
-2
scripts/compact.bat
scripts/compact.bat
+3
-3
scripts/docker/chocolatey-and-tools.ps1
scripts/docker/chocolatey-and-tools.ps1
+1
-1
scripts/hotfix-KB2552055.bat
scripts/hotfix-KB2552055.bat
+2
-2
scripts/installnet4.bat
scripts/installnet4.bat
+1
-1
scripts/openssh.ps1
scripts/openssh.ps1
+1
-1
scripts/puppet.bat
scripts/puppet.bat
+1
-1
scripts/rsync.bat
scripts/rsync.bat
+2
-2
scripts/vm-guest-tools.bat
scripts/vm-guest-tools.bat
+3
-3
windows_2008_r2.json
windows_2008_r2.json
+2
-2
windows_2012.json
windows_2012.json
+2
-2
windows_2016_hyperv.json
windows_2016_hyperv.json
+1
-1
windows_81.json
windows_81.json
+2
-2
No files found.
scripts/chef.bat
View file @
94cb757f
if
not
exist
"C:\Windows\Temp\chef.msi"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://www.getchef.com/chef/install.msi', 'C:\Windows\Temp\chef.msi')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://www.getchef.com/chef/install.msi', 'C:\Windows\Temp\chef.msi')"
<
NUL
)
msiexec
/qb /i
C
:\Windows\Temp\chef.msi
powershell
-Command
"Start-Sleep 1"
<
NUL
\ No newline at end of file
powershell
-Command
"Start-Sleep 1"
<
NUL
scripts/compact.bat
View file @
94cb757f
...
...
@@ -3,12 +3,12 @@ if "%PACKER_BUILDER_TYPE:~0,6%"=="hyperv" (
goto
:eof
)
if
not
exist
"C:\Windows\Temp\7z920-x64.msi"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
)
msiexec
/qb /i
C
:\Windows\Temp\7z920
-x
64
.msi
if
not
exist
"C:\Windows\Temp\ultradefrag.zip"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://downloads.sourceforge.net/project/ultradefrag/stable-release/6.1.0/ultradefrag-portable-6.1.0.bin.amd64.zip', 'C:\Windows\Temp\ultradefrag.zip')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://downloads.sourceforge.net/project/ultradefrag/stable-release/6.1.0/ultradefrag-portable-6.1.0.bin.amd64.zip', 'C:\Windows\Temp\ultradefrag.zip')"
<
NUL
)
if
not
exist
"C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe"
(
...
...
@@ -16,7 +16,7 @@ if not exist "C:\Windows\Temp\ultradefrag-portable-6.1.0.amd64\udefrag.exe" (
)
if
not
exist
"C:\Windows\Temp\SDelete.zip"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://download.sysinternals.com/files/SDelete.zip', 'C:\Windows\Temp\SDelete.zip')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('https://vagrantboxes.blob.core.windows.net/box/sdelete/v1.6.1/sdelete.exe', 'C:\Windows\Temp\sdelete.exe')"
<
NUL
)
...
...
scripts/docker/chocolatey-and-tools.ps1
View file @
94cb757f
...
...
@@ -9,7 +9,7 @@ if (!(Test-Path 'c:\Program Files\sysinternals')) {
New-Item
-Path
'c:\Program Files\sysinternals'
-type
directory
-Force
-ErrorAction
SilentlyContinue
}
if
(
!
(
Test-Path
'c:\Program Files\sysinternals\bginfo.exe'
))
{
(
New-Object
Net.WebClient
)
.
DownloadFile
(
'http://live.sysinternals.com/bginfo.exe'
,
'c:\Program Files\sysinternals\bginfo.exe'
)
(
New-Object
Net.WebClient
)
.
DownloadFile
(
'http
s
://live.sysinternals.com/bginfo.exe'
,
'c:\Program Files\sysinternals\bginfo.exe'
)
}
if
(
!
(
Test-Path
'c:\Program Files\sysinternals\bginfo.bgi'
))
{
(
New-Object
Net.WebClient
)
.
DownloadFile
(
'https://github.com/StefanScherer/windows-docker-workshop/raw/master/prepare-vms/azure/packer/bginfo.bgi'
,
'c:\Program Files\sysinternals\bginfo.bgi'
)
...
...
scripts/hotfix-KB2552055.bat
View file @
94cb757f
...
...
@@ -3,10 +3,10 @@
:: This fixes a problem with wrong exitcode 0 instead of custom exitcode in PowerShell 2.0
setlocal
if
defined
ProgramFiles
(
x86
)
(
set
link
=
http
://hotfixv4.microsoft.com/Windows
%%
207
/Windows
%%
20
Server2008
%%
20
R2
%%
20
SP1
/sp
2
/Fix
373932
/7600/free/438167_intl_x64_zip.exe
set
link
=
http
s
://hotfixv4.microsoft.com/Windows
%%
207
/Windows
%%
20
Server2008
%%
20
R2
%%
20
SP1
/sp
2
/Fix
373932
/7600/free/438167_intl_x64_zip.exe
set
msufilename
=
%TEMP%
\Windows6.1
-KB
2552055
-x
64
.msu
)
else
(
set
link
=
http
://hotfixv4.microsoft.com/Windows
%%
207
/Windows
%%
20
Server2008
%%
20
R2
%%
20
SP1
/sp
2
/Fix
373932
/7600/free/438164_intl_i386_zip.exe
set
link
=
http
s
://hotfixv4.microsoft.com/Windows
%%
207
/Windows
%%
20
Server2008
%%
20
R2
%%
20
SP1
/sp
2
/Fix
373932
/7600/free/438164_intl_i386_zip.exe
set
msufilename
=
%TEMP%
\Windows6.1
-KB
2552055
-x
86
.msu
)
set
zipfilename
=
%TEMP%
\KB2552055.zip
...
...
scripts/installnet4.bat
View file @
94cb757f
powershell
-NoProfile -ExecutionPolicy
unrestricted
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe', 'C:\Windows\Temp\dotNetFx40.exe')"
<
NUL
powershell
-NoProfile -ExecutionPolicy
unrestricted
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://download.microsoft.com/download/5/6/2/562A10F9-C9F4-4313-A044-9C94E0A8FAC8/dotNetFx40_Client_x86_x64.exe', 'C:\Windows\Temp\dotNetFx40.exe')"
<
NUL
C
:\Windows\Temp\dotNetFx40.exe
/q /norestart /repair
scripts/openssh.ps1
View file @
94cb757f
...
...
@@ -6,7 +6,7 @@ Write-Output "AutoStart: $AutoStart"
$is_64bit
=
[
IntPtr
]::
size
-eq
8
# setup openssh
$ssh_download_url
=
"http://www.mls-software.com/files/setupssh-7.1p1-1.exe"
$ssh_download_url
=
"http
s
://www.mls-software.com/files/setupssh-7.1p1-1.exe"
if
(
!
(
Test-Path
"C:\Program Files\OpenSSH\bin\ssh.exe"
))
{
Write-Output
"Downloading
$ssh_download_url
"
...
...
scripts/puppet.bat
View file @
94cb757f
if
not
exist
"C:\Windows\Temp\puppet.msi"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
://downloads.puppetlabs.com/windows/puppet-3.6.2
.msi', 'C:\Windows\Temp\puppet.msi')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s://downloads.puppetlabs.com/windows/puppet-3.8.7
.msi', 'C:\Windows\Temp\puppet.msi')"
<
NUL
)
:: http://docs.puppetlabs.com/pe/latest/install_windows.html
...
...
scripts/rsync.bat
View file @
94cb757f
rem install rsync
if
not
exist
"C:\Windows\Temp\7z920-x64.msi"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
)
msiexec
/qb /i
C
:\Windows\Temp\7z920
-x
64
.msi
pushd
C
:\Windows\Temp
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://mirrors.kernel.org/sourceware/cygwin/x86_64/release/rsync/rsync-3.1.2-1.tar.xz', 'C:\Windows\Temp\rsync-3.1.2-1.tar.xz')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://mirrors.kernel.org/sourceware/cygwin/x86_64/release/rsync/rsync-3.1.2-1.tar.xz', 'C:\Windows\Temp\rsync-3.1.2-1.tar.xz')"
<
NUL
cmd
/c
""
C
:\Program
Files
\7
-Zip
\7z.exe
" x rsync-3.1.2-1.tar.xz"
cmd
/c
""
C
:\Program
Files
\7
-Zip
\7z.exe
" x rsync-3.1.2-1.tar"
copy
/Y
usr
\bin\rsync.exe
"C:\Program Files\OpenSSH\bin\rsync.exe"
...
...
scripts/vm-guest-tools.bat
View file @
94cb757f
if
not
exist
"C:\Windows\Temp\7z920-x64.msi"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
)
if
not
exist
"C:\Windows\Temp\7z920-x64.msi"
(
powershell
-Command
"Start-Sleep 5 ; (New-Object System.Net.WebClient).DownloadFile('http://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
powershell
-Command
"Start-Sleep 5 ; (New-Object System.Net.WebClient).DownloadFile('http
s
://www.7-zip.org/a/7z920-x64.msi', 'C:\Windows\Temp\7z920-x64.msi')"
<
NUL
)
msiexec
/qb /i
C
:\Windows\Temp\7z920
-x
64
.msi
...
...
@@ -39,7 +39,7 @@ if exist "C:\Users\vagrant\VBoxGuestAdditions.iso" (
)
if
not
exist
"C:\Windows\Temp\VBoxGuestAdditions.iso"
(
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http://download.virtualbox.org/virtualbox/5.2.22/VBoxGuestAdditions_5.2.22.iso', 'C:\Windows\Temp\VBoxGuestAdditions.iso')"
<
NUL
powershell
-Command
"(New-Object System.Net.WebClient).DownloadFile('http
s
://download.virtualbox.org/virtualbox/5.2.22/VBoxGuestAdditions_5.2.22.iso', 'C:\Windows\Temp\VBoxGuestAdditions.iso')"
<
NUL
)
cmd
/c
""
C
:\Program
Files
\7
-Zip
\7z.exe
" x C:\Windows\Temp\VBoxGuestAdditions.iso -oC:\Windows\Temp\virtualbox"
...
...
windows_2008_r2.json
View file @
94cb757f
...
...
@@ -14,7 +14,7 @@
"headless"
:
true
,
"iso_checksum"
:
"4263be2cf3c59177c45085c0a7bc6ca5"
,
"iso_checksum_type"
:
"md5"
,
"iso_url"
:
"http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
,
"iso_url"
:
"http
s
://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"ssh_password"
:
"vagrant"
,
"ssh_username"
:
"vagrant"
,
...
...
@@ -46,7 +46,7 @@
"headless"
:
false
,
"iso_checksum"
:
"4263be2cf3c59177c45085c0a7bc6ca5"
,
"iso_checksum_type"
:
"md5"
,
"iso_url"
:
"http://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
,
"iso_url"
:
"http
s
://download.microsoft.com/download/7/5/E/75EC4E54-5B02-42D6-8879-D8D3A25FBEF7/7601.17514.101119-1850_x64fre_server_eval_en-us-GRMSXEVAL_EN_DVD.iso"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"ssh_password"
:
"vagrant"
,
"ssh_username"
:
"vagrant"
,
...
...
windows_2012.json
View file @
94cb757f
...
...
@@ -13,7 +13,7 @@
"headless"
:
true
,
"iso_checksum"
:
"8503997171f731d9bd1cb0b0edc31f3d"
,
"iso_checksum_type"
:
"md5"
,
"iso_url"
:
"http://download.microsoft.com/download/6/D/A/6DAB58BA-F939-451D-9101-7DE07DC09C03/9200.16384.WIN8_RTM.120725-1247_X64FRE_SERVER_EVAL_EN-US-HRM_SSS_X64FREE_EN-US_DV5.ISO"
,
"iso_url"
:
"http
s
://download.microsoft.com/download/6/D/A/6DAB58BA-F939-451D-9101-7DE07DC09C03/9200.16384.WIN8_RTM.120725-1247_X64FRE_SERVER_EVAL_EN-US-HRM_SSS_X64FREE_EN-US_DV5.ISO"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"ssh_password"
:
"vagrant"
,
"ssh_username"
:
"vagrant"
,
...
...
@@ -44,7 +44,7 @@
"headless"
:
true
,
"iso_checksum"
:
"8503997171f731d9bd1cb0b0edc31f3d"
,
"iso_checksum_type"
:
"md5"
,
"iso_url"
:
"http://download.microsoft.com/download/6/D/A/6DAB58BA-F939-451D-9101-7DE07DC09C03/9200.16384.WIN8_RTM.120725-1247_X64FRE_SERVER_EVAL_EN-US-HRM_SSS_X64FREE_EN-US_DV5.ISO"
,
"iso_url"
:
"http
s
://download.microsoft.com/download/6/D/A/6DAB58BA-F939-451D-9101-7DE07DC09C03/9200.16384.WIN8_RTM.120725-1247_X64FRE_SERVER_EVAL_EN-US-HRM_SSS_X64FREE_EN-US_DV5.ISO"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"ssh_password"
:
"vagrant"
,
"ssh_username"
:
"vagrant"
,
...
...
windows_2016_hyperv.json
View file @
94cb757f
...
...
@@ -137,7 +137,7 @@
"headless"
:
"false"
,
"iso_checksum"
:
"53e2f01dc4077192a85f60f8d2ffb02189074e19b25f990cbe9eb767328d3fb6"
,
"iso_checksum_type"
:
"sha256"
,
"iso_url"
:
"http://download.microsoft.com/download/8/8/6/886DAAEF-81A7-4418-82D5-07D33B816962/14393.0.161119-1705.RS1_REFRESH_SERVERHYPERCORE_OEM_X64FRE_EN-US.ISO"
,
"iso_url"
:
"http
s
://download.microsoft.com/download/8/8/6/886DAAEF-81A7-4418-82D5-07D33B816962/14393.0.161119-1705.RS1_REFRESH_SERVERHYPERCORE_OEM_X64FRE_EN-US.ISO"
,
"winrm_timeout"
:
"6h"
}
}
...
...
windows_81.json
View file @
94cb757f
...
...
@@ -13,7 +13,7 @@
"headless"
:
true
,
"iso_checksum"
:
"5e4ecb86fd8619641f1d58f96e8561ec"
,
"iso_checksum_type"
:
"md5"
,
"iso_url"
:
"http://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO"
,
"iso_url"
:
"http
s
://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"ssh_password"
:
"vagrant"
,
"ssh_username"
:
"vagrant"
,
...
...
@@ -44,7 +44,7 @@
"headless"
:
false
,
"iso_checksum"
:
"5e4ecb86fd8619641f1d58f96e8561ec"
,
"iso_checksum_type"
:
"md5"
,
"iso_url"
:
"http://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO"
,
"iso_url"
:
"http
s
://download.microsoft.com/download/B/9/9/B999286E-0A47-406D-8B3D-5B5AD7373A4A/9600.16384.WINBLUE_RTM.130821-1623_X64FRE_ENTERPRISE_EVAL_EN-US-IRM_CENA_X64FREE_EN-US_DV5.ISO"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"ssh_password"
:
"vagrant"
,
"ssh_username"
:
"vagrant"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment