-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
openssh_keypair - Adding backend option and refactoring backend code #236
openssh_keypair - Adding backend option and refactoring backend code #236
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for this PR! Some first quick comments:
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! I only have a few smaller comments :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
@Ajpantuso do you want to add more things, or should I just merge this? |
Nothing more for now. Additional choices for |
@Ajpantuso thanks a lot for improving this module! |
@Ajpantuso thank you for the great contribution! |
SUMMARY
Adding
backend
option toopenssh_keypair
so that users can select between the OpenSSH binary andcryptography
.ISSUE TYPE
COMPONENT NAME
plugins/modules/openssh_keypair
ADDITIONAL INFORMATION
openssh_cert
was brought under the openssh directory to unify the library structure.try
blocks and use targeted exceptions was performed while also keeping calls tofail_json
within the backend and having a single call toexit_json
in the modulemain
methodself.fingerprint
always contains the SHA256 fingerprint rather than sometimes the fingerprint and sometimes the full output ofssh-keygen -lf FILE