Created
May 19, 2019 15:17
-
-
Save tvories/302834daec2cdd7aad85aad751757472 to your computer and use it in GitHub Desktop.
Base OS Deployment for Server 2019 (No updates)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"variables": { | |
"name": "2019", | |
"guest_os_type": "windows9srv-64", | |
"iso_checksum": "7B463563206DCE275F2D3FF77AC36C430052FAE161CD4F8B31F3DC7AF1C3F418", | |
"iso_url": "file://C\\Users\\taylor\\Downloads\\en_windows_server_2019_x64_dvd_3c2cf1202.iso", | |
"iso_checksum_type": "sha256", | |
"answerfile": "answer_files/2019/Autounattend.xml", | |
"disk_size": "40960" | |
}, | |
"builders": [{ | |
"type": "vmware-iso", | |
"vm_name": "{{ user `name` }}", | |
"iso_url": "{{ user `iso_url` }}", | |
"iso_checksum": "{{ user `iso_checksum` }}", | |
"iso_checksum_type": "{{ user `iso_checksum_type` }}", | |
"output_directory": "{{ user `output_dir` }}/output-{{ user `name` }}-build/", | |
"communicator": "winrm", | |
"winrm_username": "vagrant", | |
"winrm_password": "vagrant", | |
"winrm_timeout": "12h", | |
"winrm_port": "5985", | |
"vnc_port_min": 5900, | |
"vnc_port_max": 5980, | |
"shutdown_command": "shutdown /s /t 10 /f /d p:4:1 /c \"Packer Shutdown\"", | |
"shutdown_timeout": "15m", | |
"headless": "false", | |
"guest_os_type": "{{ user `guest_os_type` }}", | |
"version": "10", | |
"disk_size": "{{ user `disk_size` }}", | |
"disk_type_id": "0", | |
"floppy_files": [ | |
"{{ user `answerfile` }}", | |
"scripts/winrm.bat", | |
"scripts/Set-WinRM.ps1" | |
], | |
"vmx_data": { | |
"memsize": "{{ 4096 }}", | |
"numvcpus": "{{ 2 }}", | |
"scsi0.virtualDev": "lsisas1068" | |
} | |
}], | |
"provisioners": [{ | |
"type": "powershell", | |
"elevated_user": "vagrant", | |
"elevated_password": "vagrant", | |
"scripts": [ | |
"scripts/Disable-UAC.ps1", | |
"scripts/Install-Net35.ps1", | |
"scripts/Set-WinRM.ps1" | |
] | |
}, | |
{ | |
"type": "windows-restart" | |
}, | |
{ | |
"type": "powershell", | |
"scripts": [ | |
"scripts/Install-Nuget.ps1" | |
] | |
}, | |
{ | |
"type": "windows-restart" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment