1 Commits
Author SHA1 Message Date
MichaelFisher1997 f90075f098 terraform fmt
Gitea Destroy Terraform / Terraform Destroy (push) Successful in 20s
2025-04-17 17:20:22 +01:00
5 changed files with 11 additions and 11 deletions
-1
View File
@@ -16,7 +16,6 @@ jobs:
pull-requests: write pull-requests: write
env: env:
TF_VAR_SSH_KEY: ${{ secrets.SSH_KEY }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }} TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }} TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }}
+3 -3
View File
@@ -2,7 +2,9 @@ name: Gitea Destroy Terraform
run-name: ${{ gitea.actor }} triggered a Terraform Destroy 🧨 run-name: ${{ gitea.actor }} triggered a Terraform Destroy 🧨
on: on:
workflow_dispatch: # Manual trigger push:
branches:
- destroy
jobs: jobs:
destroy: destroy:
@@ -14,11 +16,9 @@ jobs:
pull-requests: write pull-requests: write
env: env:
TF_VAR_SSH_KEY: ${{ secrets.SSH_KEY }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }} TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }} TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
+2 -1
View File
@@ -17,10 +17,11 @@ jobs:
pull-requests: write pull-requests: write
env: env:
TF_VAR_SSH_KEY: ${{ secrets.SSH_KEY }} TF_VAR_TAILSCALE_KEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }} TF_VAR_TS_AUTHKEY: ${{ secrets.TAILSCALE_KEY }}
TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }} TF_VAR_ssh_key: ${{ secrets.SSH_PUBLIC_KEY }}
steps: steps:
- name: Checkout repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
+2 -2
View File
@@ -4,7 +4,7 @@ data "template_file" "cloud_init_alpaca" {
template = file("${path.module}/files/cloud_init.yaml") template = file("${path.module}/files/cloud_init.yaml")
vars = { vars = {
ssh_key = var.SSH_KEY ssh_key = var.ssh_key
hostname = "alpaca-${count.index + 1}" hostname = "alpaca-${count.index + 1}"
domain = "home.arpa" domain = "home.arpa"
TS_AUTHKEY = var.TS_AUTHKEY TS_AUTHKEY = var.TS_AUTHKEY
@@ -39,7 +39,7 @@ data "template_file" "cloud_init_llama" {
template = file("${path.module}/files/cloud_init.yaml") template = file("${path.module}/files/cloud_init.yaml")
vars = { vars = {
ssh_key = var.SSH_KEY ssh_key = var.ssh_key
hostname = "llama-${count.index + 1}" hostname = "llama-${count.index + 1}"
domain = "home.arpa" domain = "home.arpa"
TS_AUTHKEY = var.TS_AUTHKEY TS_AUTHKEY = var.TS_AUTHKEY
+2 -2
View File
@@ -80,8 +80,8 @@ variable "TS_AUTHKEY" {
} }
variable "SSH_KEY" { variable "ssh_key" {
type = string type = string
description = "Private SSH key used to upload cloud-init files to Proxmox" description = "Public SSH key used by cloud-init"
} }