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

Cache puppetdb query functions #30

Open
leonidlm opened this issue Aug 3, 2014 · 0 comments
Open

Cache puppetdb query functions #30

leonidlm opened this issue Aug 3, 2014 · 0 comments

Comments

@leonidlm
Copy link

leonidlm commented Aug 3, 2014

I think that it is reasonable to add an option to the puppetdb query functions to cache the last returned value by the query.

This is useful in cases where we would like to avoid failures in puppet agent runs during puppetdb temporary unavailability.

For example, I would like to fail the following puppet code only if it didn't return value for the past hour:

$proxy_ip = query_nodes('Class["Proxy::Server"]', 'ec2_public_ipv4')

Otherwise, I would like to receive the last successful entry for this fact.

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

No branches or pull requests

1 participant