Cleanup

parent 54b35177
{
"builders": [
{
"vm_name": "WindowsServer2016CoreDocker",
"vm_name":"WindowsServer2016CoreDocker",
"type": "hyperv-iso",
"disk_size": 41440,
"boot_wait": "0s",
"guest_additions_mode": "disable",
"guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}",
......@@ -16,17 +16,16 @@
"./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1"
],
"communicator": "winrm",
"communicator":"winrm",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}",
"shutdown_command":
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"winrm_timeout" : "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"ram_size": 2048,
"cpu": 2,
"switch_name": "{{user `hyperv_switchname`}}",
"enable_secure_boot": true,
"enable_virtualization_extensions": true
"switch_name":"{{user `hyperv_switchname`}}",
"enable_secure_boot":true,
"enable_virtualization_extensions":true
},
{
"type": "vmware-iso",
......@@ -38,9 +37,8 @@
"boot_wait": "2m",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}",
"shutdown_command":
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"winrm_timeout" : "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows9srv-64",
"disk_size": 61440,
"vnc_port_min": 5900,
......@@ -48,6 +46,7 @@
"floppy_files": [
"{{user `autounattend`}}",
"./floppy/WindowsPowershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/disable-screensaver.ps1",
"./scripts/disable-winrm.ps1",
"./scripts/docker/enable-winrm.ps1",
......@@ -74,9 +73,8 @@
"boot_wait": "2m",
"winrm_username": "vagrant",
"winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}",
"shutdown_command":
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"winrm_timeout" : "{{user `winrm_timeout`}}",
"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,
......@@ -88,19 +86,34 @@
"./scripts/win-updates.ps1"
],
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--cpus", "2"]
[
"modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
]
}
],
"provisioners": [
{
"type": "windows-shell",
"scripts": ["./scripts/vm-guest-tools.bat", "./scripts/enable-rdp.bat"]
"scripts": [
"./scripts/vm-guest-tools.bat",
"./scripts/enable-rdp.bat"
]
},
{
"type": "powershell",
"scripts": ["./scripts/debloat-windows.ps1"]
"scripts": [
"./scripts/debloat-windows.ps1"
]
},
{
"type": "windows-restart",
......@@ -141,8 +154,7 @@
],
"variables": {
"headless": "false",
"iso_url":
"http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO",
"iso_url": "http://care.dlservice.microsoft.com/dl/download/1/4/9/149D5452-9B29-4274-B6B3-5361DBDA30BC/14393.0.161119-1705.RS1_REFRESH_SERVER_EVAL_X64FRE_EN-US.ISO",
"iso_checksum_type": "md5",
"iso_checksum": "70721288BBCDFE3239D8F8C0FAE55F1F",
"autounattend": "./answer_files/2016_core/Autounattend.xml",
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment