-
Notifications
You must be signed in to change notification settings - Fork 269
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
fixes #16844 - remove discovery image installation #486
Conversation
Isn't this here too because the plugin supports either installation with or without a smart proxy plugin? |
I don't understand the report - why puppet fails with the duplicate declaration now? Is this some new kind of check in newer Puppet version? Anyway, discovery works just fine without any smart-proxy, it is not required at all. So this is the reason why it's here twice. Shall we rename the resource name or something to prevent the error? |
It probably fails if install_images is enabled in both the foreman::plugin::discovery and foreman_proxy::plugin::discovery classes, which is correct. Renaming the resources is somewhat pointless if they're managing the same files.
It might be that the Foreman and proxy are on the same host, so you'd only enable the foreman::plugin::discovery class, in which case you'd use this code. It may just need a better error message. |
Maybe it would be better to have the discovery image installation centralized and seperated from the core and proxy plugins somewhere? |
Feel free to move it, I have no opinion on that. I'd rather stay away from Puppet. |
@mmoll what's the plan for this? |
There was no real consensus reached, the current situation is not optimal, but the error described in the issue only occurs when setting things manually. |
theforeman/puppet-foreman_proxy#367 is not directly related to this issue. We can use the same pattern: switch from |
The relation is that discovery (image) related things are in puppet-foreman and puppet-foreman_proxy |
Yes. we have two options:
Which option do you prefer? |
@lzap http://projects.theforeman.org/issues/9543 - what did you have exactly in mind there? |
See #253 (comment) |
Personally I still think the discovery plugin should only handle images on a proxy host and not the foreman (only) host. That's this PR and I think we should revisit this. |
The image downloading is tied to tftp and handled by the proxy. Since puppet-foreman_proxy is already able to download images there's no sense in duplicating the code here. Based on theforeman#486 Closes theforemanGH-580 Closes theforemanGH-581
The image downloading is tied to tftp and handled by the proxy. Since puppet-foreman_proxy is already able to download images there's no sense in duplicating the code here. Based on theforeman#486 Closes theforemanGH-580 Closes theforemanGH-581
This should (and is) handled in puppet-foreman_proxy. If needed, there could be even a migration to transfer the values to foreman_proxy parameters, when it was enabled for foreman.