Bug #4195
openBootdisk fails to provision if root url is set
Description
When using a foreman bootdisk, if the rails relative url root is set to something like '/foreman' it will fail during provisioning as it seems to assume the root url is simply '/'.
A work around is to go into the "Boot disk gPXE - generic host'
and edit:
chain <%= (u = URI.parse(foreman_url("gPXE")); u.query = "#{u.query}&mac="; u.to_s) >${net<= i ->/mac} || goto net<= i+1 %>
to
chain <%= (u = URI.parse('http://hostname.example.com/foreman/unattended/gPXE'); u.query = "#{u.query}&mac="; u.to_s) >${net<= i ->/mac} || goto net<= i+1 %>
assuming that the root is set to '/foreman'.
Updated by Dominic Cleal over 11 years ago
- Related to Support #4184: undefined method 'mask' for Safemode::Jail (NilClass) added
Updated by Dominic Cleal about 11 years ago
I've fixed the generic ISO case, but the host image rendering is missing the URL context and the rake tasks will too. This is probably not unique to bootdisk, but I wonder if PXELinux templates render properly in Foreman itself, and I suspect we should use the unattended_url setting always.
https://github.com/domcleal/foreman_bootdisk/tree/4195-relative-url
Updated by David Smith over 2 years ago
best essay writing examples [[https://www.nursingpaper.com/examples/rheumatoid-arthritis/]]
as well as writing works according to all requirements and tight deadlines