Actions
Feature #24027
openProvide some macros for OS name/family and version comparsion
Description
No more @host.operatingsystem.name == 'Fedora' && os_major <= 16 etc.
Actions
Added by Lukas Zapletal almost 8 years ago. Updated almost 8 years ago.
Description
No more @host.operatingsystem.name == 'Fedora' && os_major <= 16 etc.
See https://github.com/ares/foreman/commit/5f413e658fe4591a6935fe760ad13b01da160fd3 - I could rebase and reopen the PR if you find this useful.
This was supposed to add macros like `host_os_minor` or `host_os_rhel_compatible?`, we could easily add thinkgs like `fedora?` or `debian?
Hmmm this was demo worthy, or I simply forgot. Had no idea.
It was never merged so it couldn't be demoed. That's why I say I could rebase and reopen the PR if you find this useful. Just let me know if this is what you had in mind in this issue.
Oooh ticketing is hard. Please rebase I think we need to get rid of those constructs in templates.