-
-
Notifications
You must be signed in to change notification settings - Fork 313
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
Services variable not working with hiera hash. Expects an array of hashes it seems. #230
Comments
The On the config on disk, I would expect to manifest as different files per service. Your input to puppet consul is a hash, there the keys are the service names and the values are the inputs to
|
Hey! thanks for the response... right now i hve it like you mention. But that involves calling specifically the entrypoint for that services... I want to use hiera so i dont need to call that specifically in the module. I am trying to use the services variable that says it needs a hash. Sorry, im kinda new so maybe i didnt explained correctly... validate_hash($services) So in hiera i have to fill the variable like its a list then? Cheers! |
Hi! As Kyle mentioned, and gave an example. The way the hiera is setup requires a pattern that translates into:
So for example in our production hiera, we have a setup like:
Of course your services and checks will be unique compared to my example, but generally this is how hiera works with |
Thanks @bflad, it is nice to see a more realistic example. I've added it to the README. |
Ok! thanks for the responses guys. Very helpful. |
I think this issue is resolved now, if not please re-open. |
Hi guys,
I am trying to make the hash for services work but i see in the conf json, that the result config is like this:
when it shouhld be like this:
Or am i doing somethign wrong?
My hiera conf is like this:
Cheers!
The text was updated successfully, but these errors were encountered: