Skip to content

Commit 813fa3a

Browse files
committedDec 21, 2024
Add VM Tester2 configuration
1 parent 7a0220a commit 813fa3a

File tree

1 file changed

+51
-0
lines changed

1 file changed

+51
-0
lines changed
 

‎terraform/proxmox/Tester2.tf

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
resource "proxmox_virtual_environment_vm" "Tester2" {
2+
node_name = "prox"
3+
vm_id = "5997"
4+
name = "Tester2"
5+
description = "This is a test VM"
6+
7+
cpu {
8+
cores = "2"
9+
type = "host"
10+
architecture = "x86_64"
11+
}
12+
13+
memory {
14+
dedicated = "2048"
15+
}
16+
17+
network_device {
18+
bridge = "vmbr0"
19+
vlan_id = null
20+
}
21+
22+
disk {
23+
datastore_id = "Fast2Tb"
24+
size = "20"
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 = null
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.