Compare commits
2 commits
a93a6c8413
...
a9b066afde
Author | SHA1 | Date | |
---|---|---|---|
a9b066afde | |||
3df82f3b73 |
2 changed files with 3 additions and 5 deletions
|
@ -17,7 +17,7 @@ jobs:
|
||||||
echo "Extracting issue details..."
|
echo "Extracting issue details..."
|
||||||
ISSUE_BODY="${{ github.event.issue.body }}"
|
ISSUE_BODY="${{ github.event.issue.body }}"
|
||||||
VM_NAME=$(echo "$ISSUE_BODY" | grep -A 2 'VM Name' | tail -n 1 | xargs)
|
VM_NAME=$(echo "$ISSUE_BODY" | grep -A 2 'VM Name' | tail -n 1 | xargs)
|
||||||
VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'VM ID' | grep -v 'Clone VM ID' | tail -n 1 | xargs)
|
VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'VM UID' | tail -n 1 | xargs)
|
||||||
RAM=$(echo "$ISSUE_BODY" | grep -A 2 'RAM' | tail -n 1 | xargs)
|
RAM=$(echo "$ISSUE_BODY" | grep -A 2 'RAM' | tail -n 1 | xargs)
|
||||||
CPUS=$(echo "$ISSUE_BODY" | grep -A 2 'CPU Cores' | tail -n 1 | xargs)
|
CPUS=$(echo "$ISSUE_BODY" | grep -A 2 'CPU Cores' | tail -n 1 | xargs)
|
||||||
SCPU_TYPE=$(echo "$ISSUE_BODY" | grep -A 2 'CPU Type' | tail -n 1 | xargs)
|
SCPU_TYPE=$(echo "$ISSUE_BODY" | grep -A 2 'CPU Type' | tail -n 1 | xargs)
|
||||||
|
@ -27,8 +27,6 @@ jobs:
|
||||||
DISK_SIZE=$(echo "$ISSUE_BODY" | grep -A 2 'Disk Size' | tail -n 1 | xargs)
|
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)
|
CLONE_VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'Clone VM ID' | tail -n 1 | xargs)
|
||||||
|
|
||||||
echo "NODE_NAME=$NODE_NAME"
|
|
||||||
|
|
||||||
# Determine user_data_file_id
|
# Determine user_data_file_id
|
||||||
if [ "$NODE_NAME" == "prox" ]; then
|
if [ "$NODE_NAME" == "prox" ]; then
|
||||||
USER_DATA_FILE_ID="proxmox_virtual_environment_file.cloud_config.id"
|
USER_DATA_FILE_ID="proxmox_virtual_environment_file.cloud_config.id"
|
||||||
|
|
4
.github/ISSUE_TEMPLATE/deploy-vm.yml
vendored
4
.github/ISSUE_TEMPLATE/deploy-vm.yml
vendored
|
@ -18,7 +18,7 @@ body:
|
||||||
- type: input
|
- type: input
|
||||||
id: vm_id
|
id: vm_id
|
||||||
attributes:
|
attributes:
|
||||||
label: VM ID
|
label: VM UID
|
||||||
placeholder: Enter the VM ID
|
placeholder: Enter the VM ID
|
||||||
description: The unique numeric ID for the VM (e.g., 103).
|
description: The unique numeric ID for the VM (e.g., 103).
|
||||||
validations:
|
validations:
|
||||||
|
@ -92,6 +92,6 @@ body:
|
||||||
attributes:
|
attributes:
|
||||||
label: Clone VM ID
|
label: Clone VM ID
|
||||||
placeholder: Enter the VM ID to clone from
|
placeholder: Enter the VM ID to clone from
|
||||||
description: The VM ID to use as the clone source (e.g., 9996).
|
description: VM to CLone from, Prox = 9996, Pve2 = 9997.
|
||||||
validations:
|
validations:
|
||||||
required: true
|
required: true
|
||||||
|
|
Loading…
Reference in a new issue