users: stanza doesn't install Ec2 SSH key for user
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
Related to bug 1100920, when you use the "old" users syntax, SSH keys for the user are installed, but if you use the "new" style users stanza, then they are not:
E.g:
user: bob
works OK (with the fix for #1100920, tested at rev 809)
However this does not (creates the user, but does not create/update the .ssh/authorized
users:
- bob
Note I'm testing on openstack, and I want the key provided by the nova Ec2 metadata (DataSourceEc2) to be installed for the specified user.
I'm testing on Fedora, which has a default_user defined in /etc/cloud/
AFAICS this is due to apply_credentials only being called for the default user, returned from ds.extract_default:
Changed in cloud-init: | |
status: | New → Confirmed |
importance: | Undecided → Medium |
description: | updated |
Tracked in Github Issues as https:/ /github. com/canonical/ cloud-init/ issues/ 2365