Operating system family name not consistent inside templates
In the Hosts -> Operatings systems area, when choosing OS Family for a host, the Red Hat family is spelled just like that, "Red Hat".
When creating a template, the same family is named "Redhat".
This is obviously confusing and needs trial & error to even figure out how to use the host.operatingsystem.family parameter.
#2 Updated by Dominic Cleal over 7 years ago
- Subject changed from Operatingsystem family name not consistent. to Operating system family name not consistent inside templates
- Category set to Templates
Yeah, the reason for this is that it's referring to Foreman's internal class names which have to be a certain format to be valid in Ruby. We changed the display version in #3721 which understandably makes it harder to write the templates, but makes it better in the UI.
It might be best if we can make better helpers available to the templates so instead of calling .family on the OS that we provide the display value? Or just document the internal names on TemplateWriting or similar.