This commit is contained in:
parent
c98fb40f46
commit
ef5c58d015
4 changed files with 16 additions and 8 deletions
|
@ -22,6 +22,8 @@ jobs:
|
||||||
base_url: https://vault.bitwarden.com
|
base_url: https://vault.bitwarden.com
|
||||||
secrets: |
|
secrets: |
|
||||||
c65f8886-f6fb-4c17-bc79-b208000604bf > arrbuntu_ip_address
|
c65f8886-f6fb-4c17-bc79-b208000604bf > arrbuntu_ip_address
|
||||||
|
2dae51bd-bd65-474c-971c-b20800f22afa > aws_access_key_id
|
||||||
|
287c852d-f2b5-467d-bfc4-b20800f25f52 > aws_secret_access_key
|
||||||
a54974b8-c6b3-4df7-9042-b20800064050 > downloaders_ip_address
|
a54974b8-c6b3-4df7-9042-b20800064050 > downloaders_ip_address
|
||||||
dacbeafa-c671-4b9c-9334-b2080006f75b > init_password
|
dacbeafa-c671-4b9c-9334-b2080006f75b > init_password
|
||||||
9ceabbd0-6492-4674-9bab-b2080006e333 > init_username
|
9ceabbd0-6492-4674-9bab-b2080006e333 > init_username
|
||||||
|
@ -38,13 +40,7 @@ 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: Set AWS Credentials
|
|
||||||
env:
|
|
||||||
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
||||||
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
||||||
AWS_DEFAULT_REGION: ${{ secrets.AWS_DEFAULT_REGION }}
|
|
||||||
run: |
|
|
||||||
echo "AWS Credentials Set"
|
|
||||||
|
|
||||||
|
|
||||||
- name: Setup OpenTofu
|
- name: Setup OpenTofu
|
||||||
|
@ -55,6 +51,8 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
tofu init \
|
tofu init \
|
||||||
-var "arrbuntu_ip_address=${{ steps.bitwarden-secrets.outputs.arrbuntu_ip_address }}" \
|
-var "arrbuntu_ip_address=${{ steps.bitwarden-secrets.outputs.arrbuntu_ip_address }}" \
|
||||||
|
-var "aws_access_key_id=${{ steps.bitwarden-secrets.outputs.aws_access_key_id }}" \
|
||||||
|
-var "aws_secret_access_key=${{ steps.bitwarden-secrets.outputs.aws_secret_access_key }}" \
|
||||||
-var "downloaders_ip_address=${{ steps.bitwarden-secrets.outputs.downloaders_ip_address }}" \
|
-var "downloaders_ip_address=${{ steps.bitwarden-secrets.outputs.downloaders_ip_address }}" \
|
||||||
-var "init_password=${{ steps.bitwarden-secrets.outputs.init_password }}" \
|
-var "init_password=${{ steps.bitwarden-secrets.outputs.init_password }}" \
|
||||||
-var "init_username=${{ steps.bitwarden-secrets.outputs.init_username }}" \
|
-var "init_username=${{ steps.bitwarden-secrets.outputs.init_username }}" \
|
||||||
|
|
|
@ -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 = 152
|
size = 151
|
||||||
interface = "scsi0"
|
interface = "scsi0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,6 +19,8 @@ terraform {
|
||||||
endpoints = {
|
endpoints = {
|
||||||
s3 = var.s3_endpoint
|
s3 = var.s3_endpoint
|
||||||
}
|
}
|
||||||
|
access_key = var.aws_access_key_id
|
||||||
|
secret_key = var.aws_secret_access_key
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -60,4 +60,12 @@ variable "pve2_ip_address" {
|
||||||
|
|
||||||
variable "s3_endpoint" {
|
variable "s3_endpoint" {
|
||||||
type = string
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "aws_secret_access_key" {
|
||||||
|
type = string
|
||||||
|
}
|
||||||
|
|
||||||
|
variable "aws_access_key_id" {
|
||||||
|
type = string
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue