add todo to move template to host

This commit is contained in:
Kiara Grouwstra 2025-05-12 08:12:31 +02:00
parent 89d9a8eef6
commit ca03480e35
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU

View file

@ -23,6 +23,7 @@ locals {
vm_host = "fedi202.abundos.eu" vm_host = "fedi202.abundos.eu"
} }
# FIXME move to host
data "external" "base-hash" { data "external" "base-hash" {
program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ${path.module}/../common/nixos/base.nix)\\\"}\""] program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ${path.module}/../common/nixos/base.nix)\\\"}\""]
} }
@ -33,6 +34,7 @@ data "external" "hash" {
program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ..)\\\"}\""] program = ["sh", "-c", "echo \"{\\\"hash\\\":\\\"$(nix-hash ..)\\\"}\""]
} }
# FIXME move to host
resource "terraform_data" "template" { resource "terraform_data" "template" {
triggers_replace = [ triggers_replace = [
data.external.base-hash.result, data.external.base-hash.result,
@ -52,6 +54,7 @@ resource "terraform_data" "template" {
} }
} }
# FIXME move to host
resource "proxmox_virtual_environment_file" "upload" { resource "proxmox_virtual_environment_file" "upload" {
lifecycle { lifecycle {
replace_triggered_by = [ replace_triggered_by = [