diff options
author | Scott Moser <smoser@ubuntu.com> | 2011-08-15 16:39:21 -0500 |
---|---|---|
committer | Scott Moser <smoser@ubuntu.com> | 2011-08-15 16:39:21 -0500 |
commit | 91cf9a3fbab9fcb005c0bfea50811589243781d5 (patch) | |
tree | 7e6398d7cdaeaeeee4665d7447322ae6abd94ad4 /cloudinit/CloudConfig/cc_phone_home.py | |
parent | 4aceeea084d00c2f5453b58518317953a0f552c6 (diff) | |
download | vyos-cloud-init-91cf9a3fbab9fcb005c0bfea50811589243781d5.tar.gz vyos-cloud-init-91cf9a3fbab9fcb005c0bfea50811589243781d5.zip |
add awareness of ecdsa keys.
Diffstat (limited to 'cloudinit/CloudConfig/cc_phone_home.py')
-rw-r--r-- | cloudinit/CloudConfig/cc_phone_home.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/cloudinit/CloudConfig/cc_phone_home.py b/cloudinit/CloudConfig/cc_phone_home.py index be6abfa8..f291e1d4 100644 --- a/cloudinit/CloudConfig/cc_phone_home.py +++ b/cloudinit/CloudConfig/cc_phone_home.py @@ -20,7 +20,7 @@ import cloudinit.util as util from time import sleep frequency = per_instance -post_list_all = [ 'pub_key_dsa', 'pub_key_rsa', 'instance_id', 'hostname' ] +post_list_all = [ 'pub_key_dsa', 'pub_key_rsa', 'pub_key_ecdsa', 'instance_id', 'hostname' ] # phone_home: # url: http://my.foo.bar/$INSTANCE/ @@ -29,7 +29,7 @@ post_list_all = [ 'pub_key_dsa', 'pub_key_rsa', 'instance_id', 'hostname' ] # # phone_home: # url: http://my.foo.bar/$INSTANCE_ID/ -# post: [ pub_key_dsa, pub_key_rsa, instance_id +# post: [ pub_key_dsa, pub_key_rsa, pub_key_ecdsa, instance_id # def handle(name,cfg,cloud,log,args): if len(args) != 0: @@ -61,6 +61,7 @@ def handle(name,cfg,cloud,log,args): pubkeys = { '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', } for n, path in pubkeys.iteritems(): |