summaryrefslogtreecommitdiff
path: root/cloudinit/config/cc_phone_home.py
diff options
context:
space:
mode:
authorDaniel Hensby <dhensby@users.noreply.github.com>2020-03-11 14:55:30 +0000
committerGitHub <noreply@github.com>2020-03-11 10:55:30 -0400
commitd5dbbd1c54844a41067c673e915ada629fb4cd8f (patch)
tree0e4cc6671e3b9ff701a7dca83eb69ba2dbef1a89 /cloudinit/config/cc_phone_home.py
parenta8ef147b6141e480a309bdf27b6e0cac4f26ab18 (diff)
downloadvyos-cloud-init-d5dbbd1c54844a41067c673e915ada629fb4cd8f.tar.gz
vyos-cloud-init-d5dbbd1c54844a41067c673e915ada629fb4cd8f.zip
Add pub_key_ed25519 to cc_phone_home (#237)
Diffstat (limited to 'cloudinit/config/cc_phone_home.py')
-rw-r--r--cloudinit/config/cc_phone_home.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/cloudinit/config/cc_phone_home.py b/cloudinit/config/cc_phone_home.py
index b8e27090..733c3910 100644
--- a/cloudinit/config/cc_phone_home.py
+++ b/cloudinit/config/cc_phone_home.py
@@ -19,6 +19,7 @@ keys to post. Available keys are:
- ``pub_key_dsa``
- ``pub_key_rsa``
- ``pub_key_ecdsa``
+ - ``pub_key_ed25519``
- ``instance_id``
- ``hostname``
- ``fdqn``
@@ -52,6 +53,7 @@ POST_LIST_ALL = [
'pub_key_dsa',
'pub_key_rsa',
'pub_key_ecdsa',
+ 'pub_key_ed25519',
'instance_id',
'hostname',
'fqdn'
@@ -105,6 +107,7 @@ def handle(name, cfg, cloud, log, args):
'pub_key_dsa': '/etc/ssh/ssh_host_dsa_key.pub',
'pub_key_rsa': '/etc/ssh/ssh_host_rsa_key.pub',
'pub_key_ecdsa': '/etc/ssh/ssh_host_ecdsa_key.pub',
+ 'pub_key_ed25519': '/etc/ssh/ssh_host_ed25519_key.pub',
}
for (n, path) in pubkeys.items():