Invalid cloud-config provided warning but still works -- how to remove?
Bug #1977818 reported by
kimsia sim
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
cloud-init |
Expired
|
Medium
|
Unassigned |
Bug Description
I get an invalid cloud-config warning despite everything working as expected.
This is the question i asked in superuser https:/
the cloud provider is DigitalOcean
this is not the full config
#cloud-config
package_update: true
package_upgrade: true
users:
- name: sammy
ssh-
- ssh-rsa abcd...
- ssh-rsa efgh...
sudo: ['ALL=(ALL) NOPASSWD:ALL']
groups: sudo
shell: /bin/bash
See attached for the logs
To post a comment you must log in.
If you look at the docs (https:/ /cloudinit. readthedocs. io/en/latest/ topics/ modules. html#users- and-groups), the key name is ssh_authorized_keys rather than ssh-authorized- keys. The latter is deprecated, though it looks like a deprecation warning was missed.
This should work with no warnings:
#cloud-config authorized_ keys:
package_update: true
package_upgrade: true
users:
- name: sammy
ssh_
- ssh-rsa abcd
- ssh-rsa efgh