mirror of
https://github.com/retspen/webvirtcloud
synced 2026-11-10 20:26:48 +00:00
fix(datasource): no SSH keys for an address without a reverse DNS entry
- A booting VM is named by its address's reverse DNS entry. Without one,
the address itself was taken as the name, so its first number ("10",
"192") named the VM: a user who made a VM with that name had their keys
given to every such VM. Such an address now gets no keys; its metadata
hostname is still the address.
- Keys are written as quoted YAML strings, so a comment with an apostrophe
or ": " no longer breaks the key or the file.
This commit is contained in:
parent
5b24f9a6f8
commit
52d00e818b
3 changed files with 34 additions and 17 deletions
|
|
@ -1,6 +1,7 @@
|
|||
#cloud-config
|
||||
{% if instance_keys %}
|
||||
{% autoescape off %}{% if instance_keys %}
|
||||
ssh_authorized_keys:
|
||||
{% for key in instance_keys %} - {{ key }}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
{% endautoescape %}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue