about summary refs log tree commit diff
path: root/ops/terraform/deploy-nixos/main.tf
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2023-05-15T16·55+0300
committerclbot <clbot@tvl.fyi>2023-05-16T09·55+0000
commit14a8ea9eab6ddf5b5ea78b7e480e2acf4f03bc62 (patch)
treec1f2b550cb3b39a73e2b4a101ddfa9fda6938fde /ops/terraform/deploy-nixos/main.tf
parentbb4d80797404d77a28a5eebe6c379285264b8c2d (diff)
feat(ops/terraform/deploy-nixos): make target_user_ssh_key optional r/6143
In case `target_user_ssh_key` points to an empty string, nixos-copy.sh
just doesn't set `IdentityFile=` at all.

This allows using deploy-nixos without any explicitly passed ssh keys,
but picking up whatever ssh setup the user has configured locally.

Change-Id: If335ce8434627e61da13bf6923b9767085af08a5
Reviewed-on: https://cl.tvl.fyi/c/depot/+/8576
Autosubmit: flokli <flokli@flokli.de>
Reviewed-by: tazjin <tazjin@tvl.su>
Tested-by: BuildkiteCI
Diffstat (limited to 'ops/terraform/deploy-nixos/main.tf')
-rw-r--r--ops/terraform/deploy-nixos/main.tf1
1 files changed, 1 insertions, 0 deletions
diff --git a/ops/terraform/deploy-nixos/main.tf b/ops/terraform/deploy-nixos/main.tf
index 4a3dc08f6c85..e07e9eb95614 100644
--- a/ops/terraform/deploy-nixos/main.tf
+++ b/ops/terraform/deploy-nixos/main.tf
@@ -37,6 +37,7 @@ variable "target_user" {
 variable "target_user_ssh_key" {
   description = "SSH key to use for connecting to the target"
   type        = string
+  default     = ""
   sensitive   = true
 }