mirror of
https://github.com/ChristianLempa/boilerplates.git
synced 2024-12-11 17:51:47 +01:00
8a17193dd0
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
50 lines
904 B
HCL
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
|
|
}
|