Skip to content
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

Implement caching for looked-up items #33

Merged
merged 2 commits into from
Mar 27, 2017

Conversation

mfriedenhagen
Copy link
Contributor

  • When using Ansible with a lot of hosts, vault might be DOSed by a
    deployment, because for every host a REST call is issued.
  • As there is no host specific in the logic, the results may be
    easily cached in a dictionary.

* When using Ansible with a lot of hosts, vault might be DOSed by a
  deployment, because for every host a REST call is issued.
* As there is no host specific in the logic, the results may be
  easily cached in a dictionary.
@jhaals
Copy link
Owner

jhaals commented Mar 26, 2017

Sounds like a good solution to get around that problem.
It would be great if you could add a VAULT_USE_CACHE environment variable that could default to true, just in case someone really need to run without caching.

Use ANSIBLE_HASHICORP_VAULT_USE_CACHE to avoid name clashes.
@jhaals jhaals merged commit 57a26e4 into jhaals:master Mar 27, 2017
@jhaals
Copy link
Owner

jhaals commented Mar 27, 2017

Thanks!

@mfriedenhagen mfriedenhagen deleted the cache-lookups branch March 27, 2017 10:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants