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
d449d2b3
Commit
d449d2b3
authored
Aug 04, 2016
by
Stefan Scherer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add vm_name, add hyperv defaults
parent
40968df1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
54 deletions
+9
-54
vagrantfile-windows_2016_docker.template
vagrantfile-windows_2016_docker.template
+6
-0
windows_2016_docker.json
windows_2016_docker.json
+3
-2
windows_2016_docker_choco.json
windows_2016_docker_choco.json
+0
-52
No files found.
vagrantfile-windows_2016_docker.template
View file @
d449d2b3
...
...
@@ -58,4 +58,10 @@ Vagrant.configure("2") do |config|
v
.
vmx
[
"vhv.enable"
]
=
"TRUE"
v
.
vmx
[
"hypervisor.cpuid.v0"
]
=
"FALSE"
end
config
.
vm
.
provider
"hyperv"
do
|
v
|
v
.
cpus
=
2
v
.
maxmemory
=
2048
v
.
differencing_disk
=
true
end
end
windows_2016_docker.json
View file @
d449d2b3
...
...
@@ -30,6 +30,7 @@
"enable_secure_boot"
:
true
},
{
"vm_name"
:
"WindowsServer2016TP5Docker"
,
"type"
:
"vmware-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
...
...
@@ -65,6 +66,7 @@
}
},
{
"vm_name"
:
"WindowsServer2016TP5Docker"
,
"type"
:
"virtualbox-iso"
,
"communicator"
:
"winrm"
,
"iso_url"
:
"{{user `iso_url`}}"
,
...
...
@@ -139,8 +141,7 @@
"type"
:
"windows-shell"
,
"scripts"
:
[
"./scripts/uac-enable.bat"
,
"./scripts/compile-dotnet-assemblies.bat"
,
"./scripts/compact.bat"
"./scripts/compile-dotnet-assemblies.bat"
]
}
],
...
...
windows_2016_docker_choco.json
deleted
100644 → 0
View file @
40968df1
{
"builders"
:
[
{
"type"
:
"vmware-vmx"
,
"source_path"
:
"{{user `home`}}/.vagrant.d/boxes/windows_2016_tp5_docker/0/vmware_desktop/packer-vmware-iso.vmx"
,
"communicator"
:
"winrm"
,
"headless"
:
false
,
"boot_wait"
:
"0"
,
"winrm_username"
:
"vagrant"
,
"winrm_password"
:
"vagrant"
,
"winrm_timeout"
:
"6h"
,
"shutdown_command"
:
"shutdown /s /t 10 /f /d p:4:1 /c
\"
Packer Shutdown
\"
"
,
"vnc_port_min"
:
5900
,
"vnc_port_max"
:
5980
,
"vmx_data"
:
{
"RemoteDisplay.vnc.enabled"
:
"false"
,
"RemoteDisplay.vnc.port"
:
"5900"
,
"memsize"
:
"2048"
,
"numvcpus"
:
"2"
,
"scsi0.virtualDev"
:
"lsisas1068"
,
"vhv.enable"
:
"TRUE"
}
}
],
"provisioners"
:
[
{
"type"
:
"windows-shell"
,
"execute_command"
:
"{{ .Vars }} cmd /c
\"
{{ .Path }}
\"
"
,
"scripts"
:
[
"./scripts/chocolatey.bat"
]
},
{
"type"
:
"powershell"
,
"execute_command"
:
"powershell
\"
& { {{.Vars}}{{.Path}}; exit $LastExitCode}
\"
"
,
"scripts"
:
[
"./scripts/docker/remove-docker-key-json.ps1"
]
}
],
"post-processors"
:
[
{
"type"
:
"vagrant"
,
"keep_input_artifact"
:
false
,
"output"
:
"windows_2016_docker_{{.Provider}}_choco.box"
,
"vagrantfile_template"
:
"vagrantfile-windows_2016_docker.template"
}
],
"variables"
:
{
"home"
:
"{{env `HOME`}}"
}
}
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