Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Bob Tanner
packer-windows
Commits
b044a2c1
Commit
b044a2c1
authored
Nov 26, 2015
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make two different win2016 boxes
parent
f67af47e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
115 additions
and
19 deletions
+115
-19
scripts/docker/enable-winrm.ps1
scripts/docker/enable-winrm.ps1
+0
-0
windows_2016.json
windows_2016.json
+1
-19
windows_2016_docker.json
windows_2016_docker.json
+114
-0
No files found.
scripts/
2016
/enable-winrm.ps1
→
scripts/
docker
/enable-winrm.ps1
View file @
b044a2c1
File moved
windows_2016.json
View file @
b044a2c1
...
...
@@ -20,7 +20,7 @@
"floppy_files"
:
[
"./answer_files/2016/Autounattend.xml"
,
"./scripts/disable-winrm.ps1"
,
"./scripts/
2016/
enable-winrm.ps1"
,
"./scripts/enable-winrm.ps1"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
],
...
...
@@ -79,28 +79,10 @@
"type"
:
"windows-shell"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"scripts"
:
[
"./scripts/set-winrm-automatic.bat"
,
"./scripts/vm-guest-tools.bat"
,
"./scripts/enable-rdp.bat"
]
},
{
"type"
:
"windows-restart"
},
{
"type"
:
"windows-shell"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"scripts"
:
[
"./scripts/wait-for-uplink.bat"
,
"./scripts/uac-enable.bat"
]
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/install-docker.ps1"
,
"./scripts/enable-docker-unsecure.ps1"
]
}
],
"post-processors"
:
[
...
...
windows_2016_docker.json
0 → 100644
View file @
b044a2c1
{
"builders"
:
[
{
"type"
:
"vmware-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"https://aka.ms/tp4/serveriso"
,
"iso_checksum_type"
:
"md5"
,
"iso_checksum"
:
"935ba77651210bd1bd71a114c92b0caa"
,
"headless"
:
false
,
"boot_wait"
:
"6m"
,
"boot_command"
:
[
"<tab><enter>"
],
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"6h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"windows8srv-64"
,
"disk_size"
:
61440
,
"vnc_port_min"
:
5900
,
"vnc_port_max"
:
5980
,
"floppy_files"
:
[
"./answer_files/2016/Autounattend.xml"
,
"./scripts/disable-winrm.ps1"
,
"./scripts/docker/enable-winrm.ps1"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
],
"vmx_data"
:
{
"RemoteDisplay.vnc.enabled"
:
"false"
,
"RemoteDisplay.vnc.port"
:
"5900"
,
"memsize"
:
"2048"
,
"numvcpus"
:
"2"
,
"scsi0.virtualDev"
:
"lsisas1068"
,
"vhv.enable"
:
"TRUE"
,
"hypervisor.cpuid.v0"
:
"FALSE"
}
},
{
"type"
:
"virtualbox-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"https://aka.ms/tp4/serveriso"
,
"iso_checksum_type"
:
"md5"
,
"iso_checksum"
:
"935ba77651210bd1bd71a114c92b0caa"
,
"headless"
:
false
,
"boot_wait"
:
"6m"
,
"boot_command"
:
[
"<tab><enter>"
],
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"6h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"guest_os_type"
:
"Windows2012_64"
,
"guest_additions_mode"
:
"disable"
,
"disk_size"
:
61440
,
"floppy_files"
:
[
"./answer_files/2016/Autounattend.xml"
,
"./scripts/disable-winrm.ps1"
,
"./scripts/docker/enable-winrm.ps1"
,
"./scripts/microsoft-updates.bat"
,
"./scripts/win-updates.ps1"
,
"./scripts/oracle-cert.cer"
],
"vboxmanage"
:
[
[
"modifyvm"
,
"{{.Name}}"
,
"--memory"
,
"2048"
],
[
"modifyvm"
,
"{{.Name}}"
,
"--cpus"
,
"2"
]
]
}
],
"provisioners"
:
[
{
"type"
:
"windows-shell"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"scripts"
:
[
"./scripts/set-winrm-automatic.bat"
,
"./scripts/vm-guest-tools.bat"
,
"./scripts/enable-rdp.bat"
]
},
{
"type"
:
"windows-restart"
},
{
"type"
:
"windows-shell"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"scripts"
:
[
"./scripts/wait-for-uplink.bat"
,
"./scripts/uac-enable.bat"
]
},
{
"type"
:
"powershell"
,
"scripts"
:
[
"./scripts/install-docker.ps1"
,
"./scripts/enable-docker-unsecure.ps1"
]
}
],
"post-processors"
:
[
{
"type"
:
"vagrant"
,
"keep_input_artifact"
:
false
,
"output"
:
"windows_2016_docker_{{.Provider}}.box"
,
"vagrantfile_template"
:
"vagrantfile-windows_2016.template"
}
]
}
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