-
Notifications
You must be signed in to change notification settings - Fork 19
(SERVER-1448) add hiera #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
(SERVER-1448) add hiera #11
Conversation
|
This file: and this file: are moderately interesting. The rest of this PR is almost entirely just yaml data whose structure isn't actually important. |
|
I think my only comments are hat I'm confused by this comment: in the hiera.yaml. Does that mean you should specify a default, or that you should use the defaults? (it seems like maybe some of that is just from the default hiera.yaml). Also, if the directions in the README.md in |
|
It might also be useful somewhere to have a description of what the hierarchy looks like - it's in the hiera.yaml, but that has all the placeholders - it might be helpful to have something written somewhere about what actually is in the hierarchy as far as |
Yep, literally copy/pasted from a PE install, so I think if we don't like the wording we should probably target a change at puppet-agent? But the comment is just saying "here's what the defaults will be if you don't specify a value for datadir, and we have not specified one in this config file. If you do specify one make sure it's a valid path."
But that's just in the PR diff, right? They will show up w/line wraps if you are actually looking at the rendered markdown on github? I feel like docs people are always telling me not to put line wraps in those, but I don't necessarily have any other objection to adding them. |
Any thoughts on where? I guess I had minor concerns about keeping notes/docs in sync with the actual hierarchy definition if anything changes, and felt like there is kind of a requirement to understand hiera a little if you even want to try to reason about the hierarchy... and if you you know enough about hiera to know that you want to understand the hierarchy, then you probably already know to go look at that file? I'd be happy to add some more notes somewhere, just not entirely sure what to say or where to put them. |
I guess I was more thinking in the context of this PR, the info in the README says to put a value for datadir, so I was confused to see that comment in the hiera.yaml that seemed to be saying to do something else.
I was just looking at in vim cuz I gave up on the PR diff/looking at this in Github. But I guess https://confluence.puppetlabs.com/display/DOCS/Markdown+Tips+for+Puppet+Labs+Stuff#MarkdownTipsforPuppetLabsStuff-ThingsThatAren%27tAllThey%27reCrackedUpToBe sort of advises against it, so (shrug) I don't care that much.
Hmm... maybe actually just in the commit message it would have been helpful to say like "this PR adds the following domains/groups/etc." but I don't think it's worthwhile enough to go back and do that and you're right that this requires some amount of understanding about hiera anyway, and at that point you ca just go and look. |
ah, gotcha. I can add a note in the README explaining that you can ignore that comment :) |
|
Added a commit with a note about that misleading comment in |
|
👍 haven't fully grokked all the hiera data, but also it probably would be a waste of time to actually understand 600 files of yaml, so 💥 . |
This PR adds:
hiera_checkpuppet class that validates that hiera is working properly