-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
linode: Allow templating token for dynamic inventory #4040
linode: Allow templating token for dynamic inventory #4040
Conversation
cc @Charliekenney23 @InTheCloudDan @LBGarber @decentral1se @displague @rmcintosh |
7fb1f3e
to
2bd73ca
Compare
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 your contribution! Can you please add a changelog fragment?
Template the value for the access_token if it's a Jinja template. Allows for looking up tokens from files or pulling from secrets stores like Vault.
2bd73ca
to
90feee1
Compare
90feee1
to
57a9d96
Compare
Co-authored-by: Felix Fontein <felix@fontein.de>
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.
Besides this, looks good!
Co-authored-by: Felix Fontein <felix@fontein.de>
If nobody complains until beginning of next week, I'll merge this PR by then. |
Looks like I missed the beginning of last week, so let's merge it now :) |
Backport to stable-4: 💚 backport PR created✅ Backport PR branch: Backported as #4119 🤖 @patchback |
* linode: Allow templating token for dynamic inventory Template the value for the access_token if it's a Jinja template. Allows for looking up tokens from files or pulling from secrets stores like Vault. * add Linode changelog fragment * Fix lookup example for newer versions of Ansible Co-authored-by: Felix Fontein <felix@fontein.de> * Rename test case for clarity Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit f77a111)
@wbh1 thanks for contributing this! |
* linode: Allow templating token for dynamic inventory Template the value for the access_token if it's a Jinja template. Allows for looking up tokens from files or pulling from secrets stores like Vault. * add Linode changelog fragment * Fix lookup example for newer versions of Ansible Co-authored-by: Felix Fontein <felix@fontein.de> * Rename test case for clarity Co-authored-by: Felix Fontein <felix@fontein.de> Co-authored-by: Felix Fontein <felix@fontein.de> (cherry picked from commit f77a111) Co-authored-by: Will Hegedus <will@wbhegedus.me>
SUMMARY
Template the value for the
access_token
if it's a Jinja template.Allows for looking up tokens from files or pulling from secrets stores like Vault.
ISSUE TYPE
COMPONENT NAME
linode
ADDITIONAL INFORMATION
This is inspired by how AWS handles templating in their EC2 dynamic inventory plugin.