-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
lookup example with default parameter if decrypt fails #331
Comments
Hi, thanka for bringing this up. can you add |
Thanks for your reply, but
|
This is my solution to the problem:
The secrets cannot be written in the As a result:
Note: The |
I'm using puppet apply during development / testing, which does not work anymore, if I use "lookup" for an eyaml value:
I expected that the following call to
lookup
would return "INVALID" in this case:I expected, if the decrypt is not possible,
lookup
should return INVALID in $method, but I get:and, as a result, puppet apply aborts.
puppet documentation for
lookup
: https://puppet.com/docs/puppet/7/hiera_automatic.html(replacing the eyaml key with anything not available, returns INVALID)
Is there a different solution?
Something like:
(I did not find an example for this.)
The text was updated successfully, but these errors were encountered: