|
More recent openSUSE versions ( not sure about SLE ) have removed the /etc/SuSE-release file. In fact, as of openSUSE 13.2 that file contained a warning
-
/etc/SuSE-release is deprecated and will be removed in the future, use /etc/os-release instead
Right now on openSUSE Tumbleweed ( and I would assume on the upcoming openSUSE Leap 42.1 and SLE 12 ) getting the operatingsystem fact returns an empty string.
The solution that I've found is to patch /lib/facter/operatingsystem/linux.rb to check if lsbdistid == "openSUSE" and the set the operatingsystem fact accordingly.
|