Skip to content

Commit bab970f

Browse files
committedJan 8, 2025
Add VM Plex configuration
1 parent 401584a commit bab970f

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
 

‎terraform/proxmox/Plex.tf

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
resource "proxmox_virtual_environment_vm" "Plex" {
2+
node_name = "prox"
3+
vm_id = "202"
4+
name = "Plex"
5+
description = "Plex"
6+
7+
cpu {
8+
cores = "4"
9+
type = "host"
10+
architecture = "x86_64"
11+
}
12+
13+
memory {
14+
dedicated = "4096"
15+
}
16+
17+
network_device {
18+
bridge = "vmbr0"
19+
vlan_id = 1
20+
}
21+
22+
disk {
23+
datastore_id = "Fast2Tb"
24+
size = "30"
25+
interface = "scsi0"
26+
}
27+
28+
clone {
29+
vm_id = "9996"
30+
}
31+
32+
initialization {
33+
ip_config {
34+
ipv4 {
35+
address = "dhcp"
36+
gateway = var.vlan_gateway
37+
}
38+
}
39+
40+
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
41+
}
42+
43+
lifecycle {
44+
ignore_changes = [
45+
initialization[0].user_account[0].keys,
46+
initialization[0].user_account[0].password,
47+
initialization[0].user_account[0].username,
48+
initialization[0].user_data_file_id
49+
]
50+
}
51+
}

0 commit comments

Comments
 (0)
Please sign in to comment.