Hi,
Gabor Nyers (Suse) and I are adding Suse platform specifics to The CFEngine Roadshow (
https://github.com/Webhuis/CFEngine-Roadshow) and we encounter this issue:
I use ${sys.flavor} to determine the platform.and release:
bundle agent report_sys_os {
reports:
"inhoud van hard class os: ${sys.os} ${sys.flavor}";
}
In case of opensuse it returns: SUSE_13.
The agent discovers several other hard classes like SUSE SuSE SUSE_13 and suse.
The CFEngine Roadshow uses dynamic policies to provide platform specific policies. lsb_release is not yet installed on a virgin system and ${sys.flavor} is the life line I have. The problem is that the return value presented by sys.flavor differs from the distribution string as defined by the distributor in /etc/os-release, NAME variable. It should of course work for all platforms, including Android, SmartOS and so on.
Regards,
Gabor and Martin.