-
-
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
Warning and refresh even with no configs in the class declaration #905
Comments
In that simple example, do you have I think the problem is that if you don't declare As far as the outdated URL, I'll update it. |
Yes I do have many nginx::config in hiera:
Unless you meant just nginx::config. If that is the case, I don't know exactly what you'd mean. |
Just out of curiosity, if you do Based on the link above, I think you need to use that clunkier example (with the anchor block) to define it that way. |
Still getting the warning using |
Are you setting nginx::foo in hiera? If you're setting any of the parameters I mentioned in #895 in nginx::XX, that's probably why you're getting that deprecation warning. Setting them in hiera is more or less equivalent to declaring the class with them. I've tried a pretty vanilla setup both using Hiera and not, both with Puppet 3 and 4, and haven't seen this warning. |
Yes, I set many nginx::foo in Hiera, since I'm using the nginx package from Red Hat Sofware Collections, which uses unusual paths (and I also have non-standard requirements):
|
If you're declaring I showed you the sections of code with the parameters for If you want to think of it differently, move everything to Yes, the docs are terrible, but with the information I gave you earlier, you should be able to update your hiera configs as needed. |
Ok, so it is normal that the current code is not consistent with the philosophy. Work in progress I guess. I can understand, no problem then. I don't have enough knowledge to contribute for that so I'll concentrate on other areas. Thanks, |
Not sure I follow? I think the existing code, while hard to read, is more or less consistent with the direction the previous maintainer was taking. While you can use some of the configuration directives at the top level, you will get a deprecation warning if you do it. The Is there a reason you're going to so much work to configure it to use the SCL version of nginx? If you just need a newer nginx, if you let the module manage the package, you'll get 1.10 or 1.11 on most platforms with a lot less fuss.... |
This appears to be functioning as intended (the deprecation warning is appearing because params that were moved to |
Ok, I see. My primary goal is to make sure that it works, not avoid the warning. Are you meaning that either should work? This is not what I experimented... The reason for using the SCL version of nginx is to get support directly from Red Hat through our subscription. On Red Hat Enterprise Linux, nginx is not available in the base distro. It is available through EPEL, SCL, or Nginx's repo, but only SCL versions are supported by Red Hat support. Considering that I begin with nginx, that I have many non-standard requirements and the very good support at Red Hat, I don't mind putting the extra effort to use the SCL version. As a side effect, it helps testing this module with special parameters. |
Yes, fixing the warnings is safest, and will also make your configs more consistent. |
I understand that many, if not all parameters can be called from any of the two namespaces, but if the nginx:: namespase is used instead of nginx::config, it throws a warning but it works. I'll try to clean up my params so that the warning disappears, especially since I'd like to use my hiera files as examples for this module's documentation. The goal of most of the issues I have created is to make sure that I understand the module correctly so that I can contribute, at least for documentation. |
By the way this URL returns a 404 (and it's in the code). |
@ubellavance: First off, read the last paragraph, as all of this stuff will be rendered moot by the next release. That said, I think you're not understanding. You needed to be moving things in the other direction for the version you're using, and based on what I said before. That is, almost nothing should be in
should have the As the code stands now, if you don't declare nginx::config at all, it will try to setup an instance of nginx::config, and also give you a deprecation warning. However, if you are declaring it, I don't think the other parameters will pass through. That said, in the recent change we made that will hit the next release (hopefully to be released within the next week), the |
By the way this URL returns a 404 (and it's in the code). Yeah, that doc is now outdated by the update I mentioned above; a side effect of that is that it's no longer in master, so not visible via github without going back in time. However, I think the references to it will be gone in the newest releases as well. |
You are right, I don't understand... And thanks for trying to explain. I have looked a the code of the module and I can't understand many parts of it. I spend about 5% of my time working with puppet and I'm not a programmer so I do my best to contribute by reporting what I find. If I understand correctly, I should wait the next release before reporting anything that is related to the |
If I understand correctly, #950 should get the result I'm expecting? Is there a release planned soon? I saw that a fair amount of work has been done since the last release. Good work! |
Hi,
I have absolutely nothing in my class, but I'm still getting hte warning to put everything in Hiera (which I do).
My class declaration:
The warning. As you can see, the URL should be updated to voxpopuli
Thanks,
The text was updated successfully, but these errors were encountered: