Skip to content

Instantly share code, notes, and snippets.

@jmmeacham
Created February 2, 2022 22:42
Show Gist options
  • Save jmmeacham/561ac0beb1615b2360509babfc08dcc8 to your computer and use it in GitHub Desktop.
Save jmmeacham/561ac0beb1615b2360509babfc08dcc8 to your computer and use it in GitHub Desktop.
{
"builders": [
{
"type": "proxmox-clone",
"proxmox_url": "https://x:8006/api2/json",
"username": "x@ldap",
"password": "x",
"node": "proxmox01",
"vm_id": 870,
"clone_vm": "backup-winrm",
"vm_name": "provisioned-flare",
"template_description": "Windows 10 64-bit Enterprise template built with Packer - {{isotime \"2006-01-02 03:04:05\"}}",
"full_clone": false,
"memory": "4096",
"cores": "4",
"sockets": "2",
"os": "win10",
"pool": "mypool",
"vga": {
"type": "std",
"memory": "32"
},
"network_adapters": [
{
"bridge": "vmbr0",
"model": "e1000"
}
],
"boot_wait": "10m",
"communicator": "winrm",
"winrm_username": "user1",
"winrm_password": "user1",
"winrm_insecure": true,
"winrm_port": "5986",
"winrm_timeout": "4h"
}
],
"provisioners": [
{
"type": "powershell",
"script": "scripts/x.ps1",
"valid_exit_codes": [0,1,3010]
},
{
"type": "powershell",
"script": "scripts/x.ps1",
"valid_exit_codes": [0,1,3010]
},
{
"type": "powershell",
"script": "scripts/x.ps1",
"valid_exit_codes": [0,1,3010]
},
{
"type": "powershell",
"scripts": "scripts/x.ps1",
"valid_exit_codes": [0,1,3010]
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment