Project

General

Profile

Actions

Feature #24027

open

Provide some macros for OS name/family and version comparsion

Added by Lukas Zapletal over 6 years ago. Updated over 6 years ago.

Status:
New
Priority:
Normal
Category:
Templates
Target version:
-
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

No more @host.operatingsystem.name == 'Fedora' && os_major <= 16 etc.


Related issues 2 (0 open2 closed)

Related to Foreman - Feature #18205: Provide useful macros for templates and save_to_file helperClosedMarek Hulán01/23/2017Actions
Related to Foreman - Bug #25130: Expose host.operatingsystem_name in SafeModeRejectedMartin BacovskyActions
Actions #1

Updated by Marek Hulán over 6 years ago

  • Subject changed from Provide some template helpers for OS name/family and version comparsion to Provide some macros for OS name/family and version comparsion
Actions #2

Updated by Marek Hulán over 6 years ago

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?

Actions #3

Updated by Lukas Zapletal over 6 years ago

  • Status changed from New to Closed

Hmmm this was demo worthy, or I simply forgot. Had no idea.

Actions #4

Updated by Lukas Zapletal over 6 years ago

  • Related to Feature #18205: Provide useful macros for templates and save_to_file helper added
Actions #5

Updated by Marek Hulán over 6 years ago

  • Status changed from Closed to New
  • Triaged set to No

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.

Actions #6

Updated by Lukas Zapletal over 6 years ago

Oooh ticketing is hard. Please rebase I think we need to get rid of those constructs in templates.

Actions #7

Updated by Marek Hulán about 6 years ago

  • Related to Bug #25130: Expose host.operatingsystem_name in SafeMode added
Actions

Also available in: Atom PDF