From 3e0280c40e750fab837010f45f13fca1a492db6d Mon Sep 17 00:00:00 2001 From: Kiara Grouwstra Date: Sun, 19 Oct 2025 21:03:18 +0200 Subject: [PATCH] fix null resource commands Signed-off-by: Kiara Grouwstra --- deployment/run/tf-proxmox/main.tf | 2 +- deployment/run/tf-single-host/main.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deployment/run/tf-proxmox/main.tf b/deployment/run/tf-proxmox/main.tf index 2e2bb713..fd7b6669 100644 --- a/deployment/run/tf-proxmox/main.tf +++ b/deployment/run/tf-proxmox/main.tf @@ -173,7 +173,7 @@ resource "null_resource" "wait_for_ssh" { proxmox_virtual_environment_vm.nix_vm ] provisioner "local-exec" { - command = "bash username=root host=${proxmox_virtual_environment_vm.nix_vm.ipv4_addresses[1][0]} key_file=${var.key_file} ssh_opts='${var.ssh_opts}' ./await-ssh.sh" + command = "env username='root' host='${proxmox_virtual_environment_vm.nix_vm.ipv4_addresses[1][0]}' key_file=${var.key_file} ssh_opts='${var.ssh_opts}' bash ./await-ssh.sh" } } diff --git a/deployment/run/tf-single-host/main.tf b/deployment/run/tf-single-host/main.tf index 72ec2c12..2dc0625a 100644 --- a/deployment/run/tf-single-host/main.tf +++ b/deployment/run/tf-single-host/main.tf @@ -43,6 +43,6 @@ resource "terraform_data" "nixos" { } # TODO: refactor back to command="ignoreme" interpreter=concat([]) to protect sensitive data from error logs? # TODO: build on target? - command = "sh ${path.module}/../ssh-single-host/run.sh" + command = "sh ../ssh-single-host/run.sh" } }