debug
This commit is contained in:
parent
ae40200c1b
commit
5aefa9631a
2 changed files with 31 additions and 12 deletions
|
@ -27,6 +27,7 @@ jobs:
|
|||
DISK_SIZE=$(echo "$ISSUE_BODY" | grep -A 2 'Disk Size' | tail -n 1 | xargs)
|
||||
CLONE_VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'Clone VM ID' | tail -n 1 | xargs)
|
||||
DESCRIPTION=$(echo "$ISSUE_BODY" | grep -A 2 'Description' | tail -n 1 | xargs)
|
||||
GATEWAY=$(echo "$ISSUE_BODY" | grep -A 2 'Gateway' | tail -n 1 | xargs)
|
||||
|
||||
# Determine user_data_file_id
|
||||
if [ "$NODE_NAME" == "prox" ]; then
|
||||
|
@ -47,6 +48,8 @@ jobs:
|
|||
echo "DISK_SIZE=$DISK_SIZE" >> $GITHUB_ENV
|
||||
echo "CLONE_VM_ID=$CLONE_VM_ID" >> $GITHUB_ENV
|
||||
echo "USER_DATA_FILE_ID=$USER_DATA_FILE_ID" >> $GITHUB_ENV
|
||||
echo "DESCRIPTION=$DESCRIPTION" >> $GITHUB_ENV
|
||||
echo "GATEWAY=$GATEWAY" >> $GITHUB_ENV
|
||||
|
||||
- name: Generate Terraform File
|
||||
run: |
|
||||
|
@ -55,7 +58,7 @@ jobs:
|
|||
node_name = "${{ env.NODE_NAME }}"
|
||||
vm_id = "${{ env.VM_ID }}"
|
||||
name = "${{ env.VM_NAME }}"
|
||||
description = "${{ env.VM_NAME }}"
|
||||
description = "${{ env.DESCRIPTION }}"
|
||||
|
||||
cpu {
|
||||
cores = "${{ env.CPUS }}"
|
||||
|
@ -86,6 +89,7 @@ jobs:
|
|||
ip_config {
|
||||
ipv4 {
|
||||
address = "dhcp"
|
||||
gateway = ${{ env.GATEWAY }}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
37
.github/ISSUE_TEMPLATE/deploy-vm.yml
vendored
37
.github/ISSUE_TEMPLATE/deploy-vm.yml
vendored
|
@ -16,7 +16,7 @@ body:
|
|||
attributes:
|
||||
label: VM Name
|
||||
placeholder: Enter the name of the VM
|
||||
description: The name of the virtual machine (e.g., `Plausible`).
|
||||
description: The name of the virtual machine (e.g., Plausible).
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
@ -74,21 +74,12 @@ body:
|
|||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: vlan_id
|
||||
attributes:
|
||||
label: VLAN ID
|
||||
placeholder: Enter the VLAN ID
|
||||
description: The VLAN ID for the network device (e.g., 1 or `null`).
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: datastore
|
||||
attributes:
|
||||
label: Datastore ID
|
||||
placeholder: Enter the datastore ID
|
||||
description: Specify the datastore where the VM disk is located (e.g., `Fast2Tb`).
|
||||
description: Specify the datastore where the VM disk is located (e.g., Fast2Tb).
|
||||
validations:
|
||||
required: true
|
||||
|
||||
|
@ -109,3 +100,27 @@ body:
|
|||
description: VM to CLone from, Prox = 9996, Pve2 = 9997.
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: markdown
|
||||
attributes:
|
||||
value: |
|
||||
Ones that vary below
|
||||
|
||||
|
||||
- type: input
|
||||
id: vlan_id
|
||||
attributes:
|
||||
label: VLAN ID
|
||||
placeholder: Enter the VLAN ID
|
||||
description: The VLAN ID for the network device (e.g., 1 or null).
|
||||
validations:
|
||||
required: true
|
||||
|
||||
- type: input
|
||||
id: gateway
|
||||
attributes:
|
||||
label: Gateway
|
||||
placeholder: Enter the Gateway Variable
|
||||
description: The gateway variable (e.g., var.vlan_gateway or null).
|
||||
validations:
|
||||
required: true
|
Loading…
Reference in a new issue