-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.tf
35 lines (35 loc) · 808 Bytes
/
main.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
resource "proxmox_vm_qemu" "proxmox_vm" {
desc = "VM created by IaC POC"
count = 1
name = "clastix-vm-${count.index}"
target_node = "pve"
clone = "kubelab-template"
os_type = "cloud-init"
#cores = 2
sockets = "1"
cpu = "host"
memory = 2048
scsihw = "virtio-scsi-pci"
bootdisk = "scsi0"
agent = 0
disk {
size = "20G"
type = "scsi"
storage = "VM_SSD"
iothread = 0
}
network {
model = "virtio"
bridge = "vmbr0"
}
lifecycle {
ignore_changes = [
network,
]
}
# Cloud Init Settings (Change the IP range and the GW to suit your needs)
# ipconfig0 = "ip=10.10.10.15${count.index + 1}/24,gw=10.10.10.1"
#sshkeys = <<EOF
#${SSHPERSONALPUBLICKEY}
#EOF
}