Skip to content

Instantly share code, notes, and snippets.

@jmmeacham
Created March 23, 2021 14:30
Show Gist options
  • Save jmmeacham/b0afa94790dde3381c1b5c1109fb0de1 to your computer and use it in GitHub Desktop.
Save jmmeacham/b0afa94790dde3381c1b5c1109fb0de1 to your computer and use it in GitHub Desktop.
```
{
"variables": {
"username": "{{ env `proxmox_username`}}",
"password": "{{ env `proxmox_password`}}",
"proxmox_url": "{{ env `proxmox_url`}}",
"proxmox_node": "proxmox01",
"insecure_skip_tls_verify": "true",
"winrm_username": "{{ user `winrm_username` }}",
"winrm_password": "{{ user `winrm_password` }}",
"winrm_timeout": "4h",
"vm_name": "{{ user `vm_name` }}",
"template_description": "{{ user `template_description` }}",
"pool": "StaffVMs",
"vm_cpu_cores": "4",
"sockets": "2",
"cpu_type": "kvm64",
"vm_memory": "2048",
"vm_disk_size": "20G"
},
"builders": [
{
"type":"proxmox-clone",
"proxmox_url": "{{ user `proxmox_url`}}",
"username": "{{ user `proxmox_username` }}",
"password": "{{ user `proxmox_password` }}",
"node": "{{ user `proxmox_host`}}",
"vm_id": 777,
"clone_vm": "image-test",
"vm_name": "{{ user `vm_name` }}",
"template_description": "{{ user `template_description` }}",
"memory": "{{ user `vm_memory` }}",
"cores": "{{ user `vm_cpu_cores` }}",
"sockets": 2,
"os": "win10",
"pool": "{{user `pool`}}",
"vga": {
"type": "std",
"memory": 32
},
"network_adapters": [
{
"bridge": "vmbr0",
"model": "e1000"
}
],
"disks": [
{
"type": "virtio",
"disk_size": "32000M",
"storage_pool": "LabImages",
"storage_pool_type": "nfs",
"format": "qcow2"
}
],
"http_directory": "config",
"communicator": "winrm",
"winrm_username": "{{ user `winrm_username` }}",
"winrm_password": "{{ user `winrm_password` }}",
"winrm_insecure": true,
"winrm_use_ssl": true,
"boot_wait": "480s"
}
],
"provisioners": [
{
ect...
```
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment