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