Feature #7828
closed
Provide base URL of Foreman via foreman_url
Added by Lukas Zapletal over 10 years ago.
Updated almost 9 years ago.
Description
We currently can't use foreman_url in PXELinux Global Default or similar templates, because there is no @host accessible, therefore it leads to failed to process template: undefined method `token' for nil:NilClass errors.
We can easily allow this by skipping the token when @host attribute is not available.
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/1827 added
- Pull request deleted (
)
- Bugzilla link set to 1176111
- Tracker changed from Bug to Feature
- Status changed from Ready For Testing to New
- Assignee deleted (
Lukas Zapletal)
- Target version deleted (
1.7.2)
- Pull request added
- Pull request deleted (
https://github.com/theforeman/foreman/pull/1827)
- Related to Bug #11723: Build PXE Default fails with error added
- Subject changed from Allow foreman_url to be used in generic templates to Provide base URL of Foreman via foreman_url
- Related to Bug #14232: Missing variable to include Sat 6 Hostname in PXE Menus added
- Status changed from New to Duplicate
The @host problem was already solved by #11723, foreman_url is still not usable with safe mode though, which should be fixed by #14232. Also instead of using foreman_url('base') we introduce new method called foreman_server_fqdn that wouldn't contain protocol. If you'd still want to add foreman_url('base') support please reopen or comment in #14232 which could probably incorporate it as well.
- Related to Feature #14245: Create new template helper setting('global_setting_name') added
The new method is fine, thanks.
Also available in: Atom
PDF