File tree Expand file tree Collapse file tree 2 files changed +31
-12
lines changed Expand file tree Collapse file tree 2 files changed +31
-12
lines changed Original file line number Diff line number Diff line change 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
29
DESCRIPTION=$(echo "$ISSUE_BODY" | grep -A 2 'Description' | tail -n 1 | xargs)
30
+ GATEWAY=$(echo "$ISSUE_BODY" | grep -A 2 'Gateway' | tail -n 1 | xargs)
30
31
31
32
# Determine user_data_file_id
32
33
if [ "$NODE_NAME" == "prox" ]; then
47
48
echo "DISK_SIZE=$DISK_SIZE" >> $GITHUB_ENV
48
49
echo "CLONE_VM_ID=$CLONE_VM_ID" >> $GITHUB_ENV
49
50
echo "USER_DATA_FILE_ID=$USER_DATA_FILE_ID" >> $GITHUB_ENV
51
+ echo "DESCRIPTION=$DESCRIPTION" >> $GITHUB_ENV
52
+ echo "GATEWAY=$GATEWAY" >> $GITHUB_ENV
50
53
51
54
- name : Generate Terraform File
52
55
run : |
55
58
node_name = "${{ env.NODE_NAME }}"
56
59
vm_id = "${{ env.VM_ID }}"
57
60
name = "${{ env.VM_NAME }}"
58
- description = "${{ env.VM_NAME }}"
61
+ description = "${{ env.DESCRIPTION }}"
59
62
60
63
cpu {
61
64
cores = "${{ env.CPUS }}"
86
89
ip_config {
87
90
ipv4 {
88
91
address = "dhcp"
92
+ gateway = ${{ env.GATEWAY }}
89
93
}
90
94
}
91
95
Original file line number Diff line number Diff line change 16
16
attributes :
17
17
label : VM Name
18
18
placeholder : Enter the name of the VM
19
- description : The name of the virtual machine (e.g., ` Plausible` ).
19
+ description : The name of the virtual machine (e.g., Plausible).
20
20
validations :
21
21
required : true
22
22
@@ -74,21 +74,12 @@ body:
74
74
validations :
75
75
required : true
76
76
77
- - type : input
78
- id : vlan_id
79
- attributes :
80
- label : VLAN ID
81
- placeholder : Enter the VLAN ID
82
- description : The VLAN ID for the network device (e.g., 1 or `null`).
83
- validations :
84
- required : true
85
-
86
77
- type : input
87
78
id : datastore
88
79
attributes :
89
80
label : Datastore ID
90
81
placeholder : Enter the datastore ID
91
- description : Specify the datastore where the VM disk is located (e.g., ` Fast2Tb` ).
82
+ description : Specify the datastore where the VM disk is located (e.g., Fast2Tb).
92
83
validations :
93
84
required : true
94
85
@@ -109,3 +100,27 @@ body:
109
100
description : VM to CLone from, Prox = 9996, Pve2 = 9997.
110
101
validations :
111
102
required : true
103
+
104
+ - type : markdown
105
+ attributes :
106
+ value : |
107
+ Ones that vary below
108
+
109
+
110
+ - type : input
111
+ id : vlan_id
112
+ attributes :
113
+ label : VLAN ID
114
+ placeholder : Enter the VLAN ID
115
+ description : The VLAN ID for the network device (e.g., 1 or null).
116
+ validations :
117
+ required : true
118
+
119
+ - type : input
120
+ id : gateway
121
+ attributes :
122
+ label : Gateway
123
+ placeholder : Enter the Gateway Variable
124
+ description : The gateway variable (e.g., var.vlan_gateway or null).
125
+ validations :
126
+ required : true
You can’t perform that action at this time.
0 commit comments