Skip to content

Commit 21f89c6

Browse files
committedAug 11, 2024
add pbs
1 parent 32b88d4 commit 21f89c6

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
 

‎terraform/prox-backup-server.tf

+45
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
resource "proxmox_virtual_environment_vm" "PBS" {
2+
# VM General Settings
3+
node_name = "prox"
4+
vm_id = 10000
5+
name = "PBS"
6+
description = "Proxmox Backup Server"
7+
tags = ["tofu", "iac-repo"]
8+
started = true
9+
10+
agent {
11+
enabled = false
12+
}
13+
14+
# VM CPU Settings
15+
cpu {
16+
cores = 2
17+
type = "host"
18+
architecture = "x86_64"
19+
}
20+
21+
# VM Memory Settings
22+
memory {
23+
dedicated = 2048
24+
}
25+
26+
# VM Network Settings
27+
network_device {
28+
bridge = "vmbr0"
29+
}
30+
31+
# VM Disk Settings
32+
disk {
33+
datastore_id = "Fast2Tb"
34+
interface = "scsi0"
35+
size = 32
36+
file_format = "raw"
37+
}
38+
39+
disk {
40+
datastore_id = "Slow4tb"
41+
interface = "scsi1"
42+
size = 2048
43+
file_format = "raw"
44+
}
45+
}

0 commit comments

Comments
 (0)
Please sign in to comment.