Created
October 23, 2018 09:14
-
-
Save yooakim/c39b94082fc6586c92756e6659c218ea to your computer and use it in GitHub Desktop.
This file contains 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
{ | |
"builders": [ | |
{ | |
"type": "hyperv-iso", | |
"output_directory": "./output-win2016-base/", | |
"vm_name": "win2016-base", | |
"iso_url": "{{ user `iso_url` }}", | |
"iso_checksum_type": "{{user `iso_checksum_type`}}", | |
"iso_checksum": "{{user `iso_checksum`}}", | |
"disk_size": "60000", | |
"communicator": "winrm", | |
"winrm_username": "vagrant", | |
"winrm_password": "vagrant", | |
"winrm_timeout": "12h", | |
"shutdown_command": "C:/Scripts/sysprep.cmd", | |
"shutdown_timeout": "1h", | |
"ram_size": 4096, | |
"cpu": 2, | |
"headless": true, | |
"generation": 1, | |
"switch_name": "Default Switch", | |
"floppy_files": [ | |
"answer_files/2016/Autounattend.xml", | |
"./scripts/bootstrap.ps1", | |
"./scripts/unattend.xml" | |
] | |
} | |
], | |
"provisioners": [ | |
{ | |
"type": "powershell", | |
"elevated_user": "vagrant", | |
"elevated_password": "vagrant", | |
"script": "./scripts/windows-base.ps1" | |
}, | |
{ | |
"type": "powershell", | |
"elevated_user": "vagrant", | |
"elevated_password": "vagrant", | |
"script": "./scripts/tools_and_stuff.ps1" | |
}, | |
{ | |
"type": "windows-restart", | |
"restart_timeout": "1h" | |
}, | |
{ | |
"type": "powershell", | |
"elevated_user": "vagrant", | |
"elevated_password": "vagrant", | |
"script": "./scripts/windows-compress.ps1" | |
} | |
], | |
"variables": { | |
"iso_url": "C:/ISOs/Windows_Server_2016_Datacenter_EVAL_en-us_14393_refresh.ISO", | |
"iso_checksum_type": "SHA256", | |
"iso_checksum": "1CE702A578A3CB1AC3D14873980838590F06D5B7101C5DAACCBAC9D73F1FB50F" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment