Skip to content

Commit 5df99f2

Browse files
committedOct 13, 2024
test
1 parent 237d47f commit 5df99f2

File tree

2 files changed

+26
-3
lines changed

2 files changed

+26
-3
lines changed
 

‎.forgejo/workflows/tofu.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,13 +38,36 @@ jobs:
3838
a4ed343a-bb92-4beb-a421-b2080005bf98 > virtual_environment_endpoint
3939
af0ed579-05f8-405f-b0f3-b208000620ca > vlan_gateway
4040
41+
4142
- name: Write secrets to terraform.tfvars
43+
working-directory: ./terraform
4244
run: |
43-
SECRETS=("arrbuntu_ip_address" "downloaders_ip_address" "init_password" "kasm_ip" "kasm_ssh_ip" "npm_ip_address" "prox_ip_address" "pve2_ip_address" "s3_endpoint" "ssh_password" "ssh_username" "ubu_ip_address" "virtual_environment_api" "virtual_environment_endpoint" "vlan_gateway")
45+
SECRETS=(
46+
"arrbuntu_ip_address"
47+
"downloaders_ip_address"
48+
"init_password"
49+
"kasm_ip"
50+
"kasm_ssh_ip"
51+
"npm_ip_address"
52+
"prox_ip_address"
53+
"pve2_ip_address"
54+
"s3_endpoint"
55+
"ssh_password"
56+
"ssh_username"
57+
"ubu_ip_address"
58+
"virtual_environment_api"
59+
"virtual_environment_endpoint"
60+
"vlan_gateway"
61+
)
62+
# Clear previous terraform.tfvars if it exists
63+
> terraform.tfvars
64+
4465
for secret in "${SECRETS[@]}"; do
45-
echo "${secret} = \"${{ steps.bitwarden-secrets.outputs[secret] }}\"" >> ./terraform/terraform.tfvars
66+
value="${{ steps.bitwarden-secrets.outputs[secret] }}"
67+
echo "${secret} = \"${value}\"" >> terraform.tfvars
4668
done
4769
70+
4871
- name: Create AWS Credentials Directory
4972
run: mkdir -p ~/.aws
5073

‎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 = 151
39+
size = 152
4040
interface = "scsi0"
4141
}
4242

0 commit comments

Comments
 (0)
Please sign in to comment.