Actions
Feature #18205
closedProvide useful macros for templates and save_to_file helper
Description
Looking at community templates we often repeat code around @host.operatingsystem, it's family, version, name. Another macro that would be handy is for storing the content into a file using cat << EOF > target. Ideally Foreman core should provide helpers that provides shortcuts for these, raise meaningful errors, DRY up the code between multiple templates, are testable and improve the template readability.
Updated by The Foreman Bot almost 8 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/theforeman/foreman/pull/4216 added
Updated by Marek Hulán almost 8 years ago
Only non-host related macros are being accepted before we have proxy objects. Therefore only save_to_file will be addressed with the PR. When we have proxy objects, I'll convert those macros to host proxy methods.
Updated by Marek Hulán almost 8 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset 477f976e4e63a439f7e4a43730a3585a95396a42.
Updated by Dominic Cleal almost 8 years ago
- Tracker changed from Bug to Feature
- Subject changed from Provide useful macros for templates to Add save_to_file template helper
- Translation missing: en.field_release set to 209
Updated by Lukas Zapletal over 6 years ago
- Subject changed from Add save_to_file template helper to Provide useful macros for templates and save_to_file helper
- Triaged set to No
Not sure what happened.
Updated by Lukas Zapletal over 6 years ago
- Related to Feature #24027: Provide some macros for OS name/family and version comparsion added
Actions