Skip to content

Commit 9638fbc

Browse files
committedDec 21, 2024
debug
1 parent 6df4372 commit 9638fbc

File tree

4 files changed

+24
-79
lines changed

4 files changed

+24
-79
lines changed
 

‎.forgejo/workflows/tofu-issue-deploy.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
DATASTORE=$(echo "$ISSUE_BODY" | grep -A 2 'Datastore ID' | tail -n 1 | xargs)
2727
DISK_SIZE=$(echo "$ISSUE_BODY" | grep -A 2 'Disk Size' | tail -n 1 | xargs)
2828
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)
2930
3031
# Determine user_data_file_id
3132
if [ "$NODE_NAME" == "prox" ]; then
@@ -59,6 +60,7 @@ jobs:
5960
cpu {
6061
cores = "${{ env.CPUS }}"
6162
type = "${{ env.SCPU_TYPE }}"
63+
architecture = "x86_64"
6264
}
6365
6466
memory {
@@ -67,12 +69,15 @@ jobs:
6769
6870
network_device {
6971
bridge = "vmbr0"
72+
{{- if env.VLAN_ID }}
7073
vlan_id = "${{ env.VLAN_ID }}"
74+
{{- end }}
7175
}
7276
7377
disk {
7478
datastore_id = "${{ env.DATASTORE }}"
7579
size = "${{ env.DISK_SIZE }}"
80+
interface = "scsi0"
7681
}
7782
7883
clone {
@@ -88,6 +93,15 @@ jobs:
8893
8994
user_data_file_id = ${{ env.USER_DATA_FILE_ID }}
9095
}
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+
}
91105
}
92106
EOF
93107

‎.github/ISSUE_TEMPLATE/deploy-vm.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,15 @@ body:
1414
description: The name of the virtual machine (e.g., Plausible).
1515
validations:
1616
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
1726

1827
- type: input
1928
id: vm_id
@@ -67,7 +76,7 @@ body:
6776
placeholder: Enter the VLAN ID
6877
description: The VLAN ID for the network device (e.g., 1).
6978
validations:
70-
required: true
79+
required: false
7180

7281
- type: input
7382
id: datastore

‎terraform/proxmox/Test.tf

Lines changed: 0 additions & 39 deletions
This file was deleted.

‎terraform/proxmox/test.tf

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.