# Terraform Configuration for the Infrastructure

You will need [`terraform`](https://www.terraform.io) installed.

_Warning_: The Terraform state is not managed using GitLab, please DO NOT `terraform apply` this without proper precautions!

## Configuration

Variables can be defined in `credentials.auto.tfvars` or similar:

Proxmox Connection Variables:

    pm_api_url = ""
    pm_api_token_id = ""
    pm_api_token_secret = ""

SSH Keys to install:

    sshkeys = <<EOF
    ssh-ed25519 abc123 user@machine
    EOF

## Execution

After configuring the environment, execute the following to plan and deploy the compute resources:

1. `terraform plan`
1. `terraform apply`
