Skip to content

Commit

Permalink
Merge pull request #374 from zimbatm/fix-sshpass
Browse files Browse the repository at this point in the history
terraform: fix SSH_PASS
  • Loading branch information
Mic92 authored Sep 16, 2024
2 parents 05ab6b9 + 6a31117 commit 89442fb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion terraform/install/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ resource "null_resource" "nixos-remote" {
provisioner "local-exec" {
environment = merge({
SSH_PRIVATE_KEY = var.ssh_private_key
SSH_PASS = var.target_pass
SSHPASS = var.target_pass
stop_after_disko = var.stop_after_disko
debug_logging = var.debug_logging
kexec_tarball_url = var.kexec_tarball_url
Expand Down
2 changes: 1 addition & 1 deletion terraform/install/run-nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ if [[ -n ${flake-} ]]; then
else
args+=("--store-paths" "${nixos_partitioner}" "${nixos_system}")
fi
if [[ ${SSH_PASS} ]]; then
if [[ -n ${SSHPASS-} ]]; then
args+=("--env-password")
fi

Expand Down

0 comments on commit 89442fb

Please sign in to comment.