Skip to content

Commit 7f62aea

Browse files
committedDec 21, 2024
Add VM Tester configuration
1 parent 9638fbc commit 7f62aea

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
 

‎terraform/proxmox/Tester.tf

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
resource "proxmox_virtual_environment_vm" "Tester" {
2+
node_name = "prox"
3+
vm_id = "6568"
4+
name = "Tester"
5+
description = "Tester"
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+
{{- if env.VLAN_ID }}
20+
vlan_id = "_No response_"
21+
{{- end }}
22+
}
23+
24+
disk {
25+
datastore_id = "Fast2Tb"
26+
size = "20"
27+
interface = "scsi0"
28+
}
29+
30+
clone {
31+
vm_id = "9996"
32+
}
33+
34+
initialization {
35+
ip_config {
36+
ipv4 {
37+
address = "dhcp"
38+
}
39+
}
40+
41+
user_data_file_id = proxmox_virtual_environment_file.cloud_config.id
42+
}
43+
44+
lifecycle {
45+
ignore_changes = [
46+
initialization[0].user_account[0].keys,
47+
initialization[0].user_account[0].password,
48+
initialization[0].user_account[0].username,
49+
initialization[0].user_data_file_id
50+
]
51+
}
52+
}

0 commit comments

Comments
 (0)
Please sign in to comment.