This change simplify how ssh_authorized_keys is handled and support more scenarios.
The module input variable now expect a string. It gives more flexibility to the module user
to construct the string as needed: heredoc, file function ...
Usage is explained in a new documentation file: docs/instance_ssh_keys.adoc
All the use cases can be handled by only one variable: ssh_public_keys (Changing to plural form regarding fc662062bb7890e6782096005ee109e9696d04d0).
The conditional is here only for backward compatibility with var.ssh_authorized_keys. As soon as we move to the next major release, we can drop the conditional all together and adopt this simpler form:
This change simplify how
ssh_authorized_keys
is handled and support more scenarios.The module input variable now expect a string. It gives more flexibility to the module user to construct the string as needed: heredoc, file function ...
Usage is explained in a new documentation file:
docs/instance_ssh_keys.adoc
All the use cases can be handled by only one variable:
ssh_public_keys
(Changing to plural form regarding fc662062bb7890e6782096005ee109e9696d04d0).The conditional is here only for backward compatibility with
var.ssh_authorized_keys
. As soon as we move to the next major release, we can drop the conditional all together and adopt this simpler form:The module user will assign value to this argument like this:
To provide multiple keys at once, just use Heredoc strings:
If the module user prefer to provide keys from a file, that's also possible:
Fix #70