When creating adding an authorized public key with the Ssh_authorized_key-resource, the manifest is supposed to provide all of the pieces of the key.
Describe the Solution You Would Like
It would be very nice, if the resource could simply parse an existing foo.pub in the format used by OpenSSH (maybe, in some other formats as well). The path to the file can be interpreted the same way, source-attribute of the File-resource is or, perhaps even better, the way template() interprets its arguments.
Options specified in the manifest can complement and, in case of conflict, overwrite those found in the file.
By treating the keys as data rather than as code, it would be easier for users to deal with large number of them.
Use Case
When creating adding an authorized public key with the Ssh_authorized_key-resource, the manifest is supposed to provide all of the pieces of the key.
Describe the Solution You Would Like
It would be very nice, if the resource could simply parse an existing foo.pub in the format used by OpenSSH (maybe, in some other formats as well). The path to the file can be interpreted the same way, source-attribute of the File-resource is or, perhaps even better, the way template() interprets its arguments.
Options specified in the manifest can complement and, in case of conflict, overwrite those found in the file.
By treating the keys as data rather than as code, it would be easier for users to deal with large number of them.
Describe Alternatives You've Considered
N/A
Additional Context
This was originally filed as MODULES-7595.