Created
February 2, 2022 22:42
-
-
Save jmmeacham/561ac0beb1615b2360509babfc08dcc8 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": "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