Skip to content

Commit

Permalink
added trigger to ssh-keyscan
Browse files Browse the repository at this point in the history
  • Loading branch information
ibraheem saady authored and ibraheem saady committed Jan 6, 2021
1 parent b1c58bb commit a5a0076
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flux-auth.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ resource "tls_private_key" "ssh" {
resource "null_resource" "ssh_scan" {
count = var.flux_auth_type == "ssh" ? 1 : 0

triggers = {
timestamp = timestamp()
}

provisioner "local-exec" {
command = "ssh-keyscan ${var.flux_ssh_scan_url} > /tmp/known_hosts"
}
Expand Down

0 comments on commit a5a0076

Please sign in to comment.