File tree 1 file changed +52
-0
lines changed
1 file changed +52
-0
lines changed Original file line number Diff line number Diff line change
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
+ }
You can’t perform that action at this time.
0 commit comments