fix null resource commands

Signed-off-by: Kiara Grouwstra <kiara@procolix.eu>
This commit is contained in:
Kiara Grouwstra 2025-10-19 21:03:18 +02:00
parent d94d01ff93
commit e541157e98
Signed by: kiara
SSH key fingerprint: SHA256:COspvLoLJ5WC5rFb9ZDe5urVCkK4LJZOsjfF4duRJFU
2 changed files with 2 additions and 2 deletions

View file

@ -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"
}
}

View file

@ -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"
}
}