christianlempa-boilerplates/terraform/proxmox/full-clone.tf
Christoph Schug 8a17193dd0 fix: add final newline character to text files
This makes text files compliant to POSIX which requires every line of a
text file to end with a newline character [1][2].

[1] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_403
[2] https://pubs.opengroup.org/onlinepubs/9699919799/basedefs/V1_chap03.html#tag_03_206
2024-02-22 19:06:54 +01:00

50 lines
904 B
HCL

# 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
}