File tree Expand file tree Collapse file tree 4 files changed +24
-79
lines changed Expand file tree Collapse file tree 4 files changed +24
-79
lines changed Original file line number Diff line number Diff line change 26
26
DATASTORE=$(echo "$ISSUE_BODY" | grep -A 2 'Datastore ID' | tail -n 1 | xargs)
27
27
DISK_SIZE=$(echo "$ISSUE_BODY" | grep -A 2 'Disk Size' | tail -n 1 | xargs)
28
28
CLONE_VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'Clone VM ID' | tail -n 1 | xargs)
29
+ DESCRIPTION=$(echo "$ISSUE_BODY" | grep -A 2 'Description' | tail -n 1 | xargs)
29
30
30
31
# Determine user_data_file_id
31
32
if [ "$NODE_NAME" == "prox" ]; then
59
60
cpu {
60
61
cores = "${{ env.CPUS }}"
61
62
type = "${{ env.SCPU_TYPE }}"
63
+ architecture = "x86_64"
62
64
}
63
65
64
66
memory {
@@ -67,12 +69,15 @@ jobs:
67
69
68
70
network_device {
69
71
bridge = "vmbr0"
72
+ {{- if env.VLAN_ID }}
70
73
vlan_id = "${{ env.VLAN_ID }}"
74
+ {{- end }}
71
75
}
72
76
73
77
disk {
74
78
datastore_id = "${{ env.DATASTORE }}"
75
79
size = "${{ env.DISK_SIZE }}"
80
+ interface = "scsi0"
76
81
}
77
82
78
83
clone {
88
93
89
94
user_data_file_id = ${{ env.USER_DATA_FILE_ID }}
90
95
}
96
+
97
+ lifecycle {
98
+ ignore_changes = [
99
+ initialization[0].user_account[0].keys,
100
+ initialization[0].user_account[0].password,
101
+ initialization[0].user_account[0].username,
102
+ initialization[0].user_data_file_id
103
+ ]
104
+ }
91
105
}
92
106
EOF
93
107
Original file line number Diff line number Diff line change 14
14
description : The name of the virtual machine (e.g., Plausible).
15
15
validations :
16
16
required : true
17
+
18
+ - type : input
19
+ id : description
20
+ attributes :
21
+ label : Description
22
+ placeholder : Enter the VM Description
23
+ description : Enter the VM Description
24
+ validations :
25
+ required : true
17
26
18
27
- type : input
19
28
id : vm_id
67
76
placeholder : Enter the VLAN ID
68
77
description : The VLAN ID for the network device (e.g., 1).
69
78
validations :
70
- required : true
79
+ required : false
71
80
72
81
- type : input
73
82
id : datastore
Load Diff This file was deleted.
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments