-
-
Notifications
You must be signed in to change notification settings - Fork 875
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
Nginx location as exported resource not working anymore #964
Comments
I kind of get what you're doing here, but I'm not totally sure what the expected behavior is, or what changes exactly caused this. Is it possible to test with current git master branch and see if the behavior works as you expect? The next release will get rid of the Usually, as I understand it, it's parameters that vary depending on, say, OS or other factors, are in params, other defaults are just assigned directly in the class params (if they're overridable). Does that kind of make sense? |
Hy ... If I understand correctly, it seems, that it is not fully clear, what I'm doing and why. I'll try to explain in other words:
I think this makes sense, however currently (where my issue comes from, i.e. for Conclusion So there are 2 possible approaches. Define useful parameter defaults in classes or defined types directly or encapsulate those in a Greets |
Additional Info: |
The error in the OP references |
@ITler: Current version (git master, and soon to be released version) does not have an interface to |
Yes, I understood, that In my use case "define Maybe another example:
without Somehow (I can't explain why - maybe bug in puppet itself) I've got no problem on older puppet server version, but I'm forced to upgrade. So I run into that issues here. Also |
Latest error in current master (50cced9) |
PR #974 solves my use case with bug fixed from previous comment and has minimal impact on code. Please merge asap. |
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g. Puppet code you use)
I need to define a location on an application server as an exported resource, that will get realized on another host with nginx installed. So on my appserver I only use:
What are you seeing
In an older version of
jfryman-nginx
(some version not far before the last 9999999) this worked fine. With the last version of jfryman and the current 0.5.0 from voxpupli this doesn't work anymore.What behaviour did you expect instead
I would have expected to have things working, like they did before.
Output log
Any additional information you'd like to impart
Of cause, the appserver doesn't have an nginx installation, so I can't call
include ::nginx
However when explicitly defining proxy_redirect in $location_params this seem to work. Then issue cascading to next parameter.. and so on... This means, that every parameter definition of
nginx/manifests/resource/location.pp
assigning a default value from$::nginx
will cause this issue. I think the obvious approach (usual pattern) should be to assign default values from$::nginx::parms
, which could be included beforehand.Kind regards
ITler
The text was updated successfully, but these errors were encountered: