-
Notifications
You must be signed in to change notification settings - Fork 11
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
undefined local variable or method `password' for #<Puppet::Parser::TemplateWrapper:0x24910d2d> #7
Comments
HI @rujim ! Ijust just coming back from the holidays -- to me it looks like you have an extra quote on the createdb line -- could that be what is causing the problem? Also please try to post both configs encased in an "insert code" block so that it doesn't get parsed into something else by github. |
Updated. |
Ok so another thing I see here is -- this should be on the same line:
(change to)
If it's not, what's happening is instead of password being treated as a string -- it's being treated as a hashed array -- at which point the module doesn't know what to do with it. Everything else at least -looks- fine to me. =) |
Same error. |
Interesting. Looks like you found a bug -- try the latest master and also remove the - from before the bamboouser -- ie:
|
Hello jadestorm, Puppetfile
.fixtures.yml
My Hiera code:
site/profiles/manifests/shared/postgresql/patroni.pp
But I got the same issue:
Please, help me to fix its. |
Hrm I think I see the problem. (Btw I don't use Patroni anymore so I'm relying on you to test this) Basically, I was using password in a variable context, not a "string passed as the hash key". Please try the latest master commit. =) |
Unfortunately, I can't see any changes with my Puppet. Same issue with password. |
If you are getting the exact same error, that would most likely imply that the module didn't update. (or wouldn't make sense for you to see that exact same error with the current code) Open up the file it's referencing and go to line 46 and make sure all of the instances of password you see are in quotes. That should tell us if it updated at all. |
yes, fixed now! Tx! |
Awesome! Glad to hear it! =) And thanks for pointing out the bug! I'll get a formal release out hopefully today. |
Hi Daniel,
2.yaml
Please, verify code for template. |
Hrm. I suspect the erb processor is setting $settings['options'] and treating that as like a true or false rather than a "does this exist". Might have to do some shuffling. |
Can you try this latest master tweak? My logic was all off on that after I took a second look at it -- plus there's a better way to test if a key exists. |
Last commit doesn't help me to pass options into Patroni conf file (/etc/patroni/ha-pg-bamboo.yml):
Config (hieradata/product/lsm/tier/inf/env/2.yaml):
BR, |
It's looking like it's going to be a bit before I can get around to this. If you have some time to patch it though I certainly accept and appreciate pull requests! |
Hi Daniel, |
Resolved via @rujim 's PR! |
Hello jadestorm,
Please help me to create right Hiera values for bootstrap_users array.
My code (hieradata/product/lsm/tier/inf/env/2.yaml):
Error is:
Thank you in advance and happy holidays!
The text was updated successfully, but these errors were encountered: