Commit 1e048d0f authored by Stefan Scherer's avatar Stefan Scherer

Cleanup

parent 54b35177
{ {
"builders": [ "builders": [
{ {
"vm_name": "WindowsServer2016CoreDocker", "vm_name":"WindowsServer2016CoreDocker",
"type": "hyperv-iso", "type": "hyperv-iso",
"disk_size": 41440, "disk_size": 41440,
"boot_wait": "0s", "boot_wait": "0s",
"guest_additions_mode": "disable", "guest_additions_mode":"disable",
"iso_url": "{{user `iso_url`}}", "iso_url": "{{user `iso_url`}}",
"iso_checksum_type": "{{user `iso_checksum_type`}}", "iso_checksum_type": "{{user `iso_checksum_type`}}",
"iso_checksum": "{{user `iso_checksum`}}", "iso_checksum": "{{user `iso_checksum`}}",
...@@ -16,17 +16,16 @@ ...@@ -16,17 +16,16 @@
"./scripts/microsoft-updates.bat", "./scripts/microsoft-updates.bat",
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"communicator": "winrm", "communicator":"winrm",
"winrm_username": "vagrant", "winrm_username": "vagrant",
"winrm_password": "vagrant", "winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}", "winrm_timeout" : "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"ram_size": 2048, "ram_size": 2048,
"cpu": 2, "cpu": 2,
"switch_name": "{{user `hyperv_switchname`}}", "switch_name":"{{user `hyperv_switchname`}}",
"enable_secure_boot": true, "enable_secure_boot":true,
"enable_virtualization_extensions": true "enable_virtualization_extensions":true
}, },
{ {
"type": "vmware-iso", "type": "vmware-iso",
...@@ -38,9 +37,8 @@ ...@@ -38,9 +37,8 @@
"boot_wait": "2m", "boot_wait": "2m",
"winrm_username": "vagrant", "winrm_username": "vagrant",
"winrm_password": "vagrant", "winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}", "winrm_timeout" : "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "windows9srv-64", "guest_os_type": "windows9srv-64",
"disk_size": 61440, "disk_size": 61440,
"vnc_port_min": 5900, "vnc_port_min": 5900,
...@@ -48,6 +46,7 @@ ...@@ -48,6 +46,7 @@
"floppy_files": [ "floppy_files": [
"{{user `autounattend`}}", "{{user `autounattend`}}",
"./floppy/WindowsPowershell.lnk", "./floppy/WindowsPowershell.lnk",
"./floppy/PinTo10.exe",
"./scripts/disable-screensaver.ps1", "./scripts/disable-screensaver.ps1",
"./scripts/disable-winrm.ps1", "./scripts/disable-winrm.ps1",
"./scripts/docker/enable-winrm.ps1", "./scripts/docker/enable-winrm.ps1",
...@@ -74,9 +73,8 @@ ...@@ -74,9 +73,8 @@
"boot_wait": "2m", "boot_wait": "2m",
"winrm_username": "vagrant", "winrm_username": "vagrant",
"winrm_password": "vagrant", "winrm_password": "vagrant",
"winrm_timeout": "{{user `winrm_timeout`}}", "winrm_timeout" : "{{user `winrm_timeout`}}",
"shutdown_command": "shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"",
"guest_os_type": "Windows2012_64", "guest_os_type": "Windows2012_64",
"guest_additions_mode": "disable", "guest_additions_mode": "disable",
"disk_size": 61440, "disk_size": 61440,
...@@ -88,19 +86,34 @@ ...@@ -88,19 +86,34 @@
"./scripts/win-updates.ps1" "./scripts/win-updates.ps1"
], ],
"vboxmanage": [ "vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"], [
["modifyvm", "{{.Name}}", "--cpus", "2"] "modifyvm",
"{{.Name}}",
"--memory",
"2048"
],
[
"modifyvm",
"{{.Name}}",
"--cpus",
"2"
]
] ]
} }
], ],
"provisioners": [ "provisioners": [
{ {
"type": "windows-shell", "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", "type": "powershell",
"scripts": ["./scripts/debloat-windows.ps1"] "scripts": [
"./scripts/debloat-windows.ps1"
]
}, },
{ {
"type": "windows-restart", "type": "windows-restart",
...@@ -141,8 +154,7 @@ ...@@ -141,8 +154,7 @@
], ],
"variables": { "variables": {
"headless": "false", "headless": "false",
"iso_url": "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",
"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_type": "md5",
"iso_checksum": "70721288BBCDFE3239D8F8C0FAE55F1F", "iso_checksum": "70721288BBCDFE3239D8F8C0FAE55F1F",
"autounattend": "./answer_files/2016_core/Autounattend.xml", "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