-
-
Notifications
You must be signed in to change notification settings - Fork 883
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
Hiera documentation bug #556
Comments
Thanks @jowrjowr. What would you change to make this actionable for new users? Docs need updating, or is this better a code change in your opinion? |
I think it needs to be made explicit that if you specify a nginx::config, It would be really nice if folks weren't pushed so strongly into hiera. Why On Thu, Jan 29, 2015 at 9:13 AM, James Fryman [email protected]
|
It's not a push. I'm really trying to find a nice medium between those that do use hiera, and those that do not. We're sitting on two worlds here... and it seems to be difficult to truly find that. The ideal is that what I do specify in the documents does work, and you do not have to fully populate |
For anyone that stumbles across this issue and needs a temporary work around, here is a fully functional example of instantiating nginx::config manually using version 0.2.2 of the nginx module. As far as I can tell, this example sets all of the same defaults that would normally get set (skipping over anything set to undef by default):
|
See voxpupuli/puppet-nginx#556 for more information.
We are going to be reworking this, and probably flattening things out. So, I'm going to close this ticket for now, feel free to follow #950 |
The workaround described here https://github.com/jfryman/puppet-nginx/blob/master/docs/hiera.md in regards to specifying nginx::config options without using hiera does not work.
Including nginx will construct the nginx::config class, which then errors out when you later construct it because nginx::config will be duplicated.
My preferred solution is this:
class { 'nginx::config': }-> class { 'nginx': }
This enforces the proper ordering, and eased a bit of frustration I was having.
The text was updated successfully, but these errors were encountered: