This commit is contained in:
parent
237d47f13a
commit
5df99f2dda
2 changed files with 26 additions and 3 deletions
|
@ -38,13 +38,36 @@ jobs:
|
||||||
a4ed343a-bb92-4beb-a421-b2080005bf98 > virtual_environment_endpoint
|
a4ed343a-bb92-4beb-a421-b2080005bf98 > virtual_environment_endpoint
|
||||||
af0ed579-05f8-405f-b0f3-b208000620ca > vlan_gateway
|
af0ed579-05f8-405f-b0f3-b208000620ca > vlan_gateway
|
||||||
|
|
||||||
|
|
||||||
- name: Write secrets to terraform.tfvars
|
- name: Write secrets to terraform.tfvars
|
||||||
|
working-directory: ./terraform
|
||||||
run: |
|
run: |
|
||||||
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")
|
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"
|
||||||
|
)
|
||||||
|
# Clear previous terraform.tfvars if it exists
|
||||||
|
> terraform.tfvars
|
||||||
|
|
||||||
for secret in "${SECRETS[@]}"; do
|
for secret in "${SECRETS[@]}"; do
|
||||||
echo "${secret} = \"${{ steps.bitwarden-secrets.outputs[secret] }}\"" >> ./terraform/terraform.tfvars
|
value="${{ steps.bitwarden-secrets.outputs[secret] }}"
|
||||||
|
echo "${secret} = \"${value}\"" >> terraform.tfvars
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
- name: Create AWS Credentials Directory
|
- name: Create AWS Credentials Directory
|
||||||
run: mkdir -p ~/.aws
|
run: mkdir -p ~/.aws
|
||||||
|
|
||||||
|
|
|
@ -36,7 +36,7 @@ resource "proxmox_virtual_environment_vm" "Kasm" {
|
||||||
# VM Disk Settings
|
# VM Disk Settings
|
||||||
disk {
|
disk {
|
||||||
datastore_id = "local-lvm"
|
datastore_id = "local-lvm"
|
||||||
size = 151
|
size = 152
|
||||||
interface = "scsi0"
|
interface = "scsi0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue