Skip to content

Commit

Permalink
Let NixOps provide known_hosts independently of user known_hosts
Browse files Browse the repository at this point in the history
Companion of NixOS/nixops#1464
  • Loading branch information
roberth committed Aug 6, 2021
1 parent 0056e04 commit 46489df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nixops_aws/backends/ec2.py
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,9 @@ def _ip_for_ssh_key(self):
else:
return self.public_ipv4

def get_ssh_host_keys(self):
return self.private_ipv4 + " " + self.public_host_key + "\n" + self.public_ipv4 + " " + self.public_host_key + "\n"

def _booted_from_ebs(self):
return self.root_device_type == "ebs"

Expand Down

0 comments on commit 46489df

Please sign in to comment.