Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: Mafyuh/iac
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: a9b066afded07ca6f4856aae3c21158078d2f37a
Choose a base ref
..
head repository: Mafyuh/iac
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: a93a6c8413f7cce892a20889aee526fd26b59cb3
Choose a head ref
Showing with 5 additions and 3 deletions.
  1. +3 −1 .forgejo/workflows/tofu-issue-deploy.yml
  2. +2 −2 .github/ISSUE_TEMPLATE/deploy-vm.yml
4 changes: 3 additions & 1 deletion .forgejo/workflows/tofu-issue-deploy.yml
Original file line number Diff line number Diff line change
@@ -17,7 +17,7 @@ jobs:
echo "Extracting issue details..."
ISSUE_BODY="${{ github.event.issue.body }}"
VM_NAME=$(echo "$ISSUE_BODY" | grep -A 2 'VM Name' | tail -n 1 | xargs)
VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'VM UID' | tail -n 1 | xargs)
VM_ID=$(echo "$ISSUE_BODY" | grep -A 2 'VM ID' | grep -v 'Clone VM ID' | 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)
SCPU_TYPE=$(echo "$ISSUE_BODY" | grep -A 2 'CPU Type' | tail -n 1 | xargs)
@@ -27,6 +27,8 @@ 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)
echo "NODE_NAME=$NODE_NAME"
# Determine user_data_file_id
if [ "$NODE_NAME" == "prox" ]; then
USER_DATA_FILE_ID="proxmox_virtual_environment_file.cloud_config.id"
4 changes: 2 additions & 2 deletions .github/ISSUE_TEMPLATE/deploy-vm.yml
Original file line number Diff line number Diff line change
@@ -18,7 +18,7 @@ body:
- type: input
id: vm_id
attributes:
label: VM UID
label: VM ID
placeholder: Enter the VM ID
description: The unique numeric ID for the VM (e.g., 103).
validations:
@@ -92,6 +92,6 @@ body:
attributes:
label: Clone VM ID
placeholder: Enter the VM ID to clone from
description: VM to CLone from, Prox = 9996, Pve2 = 9997.
description: The VM ID to use as the clone source (e.g., 9996).
validations:
required: true