Skip to content

Commit d674b1a

Browse files
committedOct 12, 2024
add tofu workflow, more space for kasm
1 parent 045ad2e commit d674b1a

File tree

2 files changed

+33
-1
lines changed

2 files changed

+33
-1
lines changed
 

‎.forgejo/workflows/tofu.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Terraform Apply
2+
3+
on:
4+
push:
5+
paths:
6+
- 'terraform/**'
7+
8+
jobs:
9+
terraform:
10+
runs-on: docker
11+
steps:
12+
- name: Checkout code
13+
uses: actions/checkout@v4
14+
15+
- name: Download OpenTofu Installer
16+
run: |
17+
curl --proto '=https' --tlsv1.2 -fsSL https://get.opentofu.org/install-opentofu.sh -o install-opentofu.sh
18+
chmod +x install-opentofu.sh
19+
20+
- name: Inspect and Install OpenTofu
21+
run: ./install-opentofu.sh --install-method deb
22+
23+
- name: Clean up Installer Script
24+
run: rm -f install-opentofu.sh
25+
26+
- name: Initialize OpenTofu
27+
run: opentofu init
28+
working-directory: ./terraform
29+
30+
- name: Apply OpenTofu
31+
run: opentofu apply -auto-approve
32+
working-directory: ./terraform

‎terraform/kasm.tf

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
3636
# VM Disk Settings
3737
disk {
3838
datastore_id = "local-lvm"
39-
size = 100
39+
size = 150
4040
interface = "scsi0"
4141
}
4242

0 commit comments

Comments
 (0)
Please sign in to comment.