terraform fmt
All checks were successful
Gitea Actions Demo / Terraform Plan (push) Successful in 55s

This commit is contained in:
MichaelFisher1997 2025-04-17 19:21:23 +01:00
parent 5a0f927532
commit ec07db08db
5 changed files with 10 additions and 8 deletions

View File

@ -16,6 +16,7 @@ jobs:
pull-requests: write
env:
TF_VAR_SSH_KEY: ${{ secrets.SSH_KEY }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }}

View File

@ -14,9 +14,11 @@ jobs:
pull-requests: write
env:
TF_VAR_SSH_KEY: ${{ secrets.SSH_KEY }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

View File

@ -17,11 +17,10 @@ jobs:
pull-requests: write
env:
TF_VAR_TAILSCALE_KEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_SSH_KEY: ${{ secrets.SSH_KEY }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }}
steps:
- name: Checkout repository
uses: actions/checkout@v4

View File

@ -4,7 +4,7 @@ data "template_file" "cloud_init_alpaca" {
template = file("${path.module}/files/cloud_init.yaml")
vars = {
ssh_key = var.ssh_key
ssh_key = var.SSH_KEY
hostname = "alpaca-${count.index + 1}"
domain = "home.arpa"
TS_AUTHKEY = var.TS_AUTHKEY
@ -39,7 +39,7 @@ data "template_file" "cloud_init_llama" {
template = file("${path.module}/files/cloud_init.yaml")
vars = {
ssh_key = var.ssh_key
ssh_key = var.SSH_KEY
hostname = "llama-${count.index + 1}"
domain = "home.arpa"
TS_AUTHKEY = var.TS_AUTHKEY

View File

@ -80,8 +80,8 @@ variable "TS_AUTHKEY" {
}
variable "ssh_key" {
variable "SSH_KEY" {
type = string
description = "Public SSH key used by cloud-init"
description = "Private SSH key used to upload cloud-init files to Proxmox"
}