On Tuesday, October 4, 2016 at 10:20:40 AM UTC-5, Greg Sutcliffe wrote: > > Firstly, by default the media comes from an upstream mirror - the default > Centos mirror we ship is http://mirror.centos.org/centos/$version/os/$arch > - no installation media is going to be retrieved from Foreman under either > scenario. Of course, you're welcome to spin up an http mirror of your own > on a given network add it in the Foreman UI (or take a look at our Katello > plugin for content management). Your "Local" scenario is presumably using > an appropriate solution for you, so we're good here (assuming pop2 can see > this mirror). >
Indeed I built a local media for this purpose. > > Secondly, the TFTP is always handled at the proxy level, so that doesn't > change from your "Local" scenario. > > The only "non-local" thing you need to worry about is the templates - as > you see in your original post, you're trying to retrieve them from the > proxy, which (out of the box) won't work - the proxy doesn't understand > those URLs. That's what leads to my question about how the proxy's IP > appears in your PXE template, because if you hard-coded it (or changed > :unattended_url) then not only will it not work, it'll actually break your > "Local" setup, because :unattended_url is a global setting. > The unattended_url configured on the foreman primary is "10.10.0.10" and the ip I plan to configure "local" builderXX hosts with. > Assuming then that the host in pop2 has no route to Foreman in pop1 (if it > does, then you need nothing more than a TFTP proxy in pop2, the rest should > work as before), then what you want to do is configure the "Templates" > plugin for the proxy - this is *exactly* the use case it was written for. > You can find docs for it here: > https://theforeman.org/manuals/1.12/index.html#4.3.12Templates > So this appears to be what I needed (template proxy) and I did set it up and it now shows up in the smart proxy's (builder01) list of "features" after a refresh on the foreman primary.... however I still get 404 on the unattended URL. Here is the configuration I have for the "/etc/foreman-proxy/settings.d/templates.yml :enabled: true :template_url: http://10.10.0.10:8000 (10.10.0.10 is one of builder01 ips) . I also pointed it at the foreman primary at one point thinking it needed to be using that instead (based on notes in the example templates.yml file) but didn't seem to help. And I did ensure that ":http_port: 8000" was uncommented in /etc/foreman-proxy/settings.yml. (restarted foreman-proxy and httpd to be sure). I tried "cancel build" then "build" thinking maybe it needed to copy something and that didn't seem to make a difference so I also deleted the host and re-added to build and same error. I'll keep trying to trace what I am missing here. Thanks for the suggestions, they certainly seem to be what I need to get working! -- You received this message because you are subscribed to the Google Groups "Foreman users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/foreman-users. For more options, visit https://groups.google.com/d/optout.
