christianlempa-boilerplates/terraform/proxmox/full-clone.tf

50 lines
904 B
Terraform
Raw Normal View History

2022-03-11 14:56:55 +01:00
# Proxmox Full-Clone
# ---
# Create a new VM from a clone
resource "proxmox_vm_qemu" "your-vm" {
# VM General Settings
target_node = "your-proxmox-node"
vmid = "100"
name = "vm-name"
desc = "Description"
# VM Advanced General Settings
onboot = true
# VM OS Settings
clone = "your-clone"
# VM System Settings
agent = 1
# VM CPU Settings
cores = 1
sockets = 1
cpu = "host"
# VM Memory Settings
memory = 1024
# VM Network Settings
network {
bridge = "vmbr0"
model = "virtio"
}
# VM Cloud-Init Settings
os_type = "cloud-init"
# (Optional) IP Address and Gateway
# ipconfig0 = "ip=0.0.0.0/0,gw=0.0.0.0"
# (Optional) Default User
# ciuser = "your-username"
# (Optional) Add your SSH KEY
# sshkeys = <<EOF
# #YOUR-PUBLIC-SSH-KEY
# EOF
}