saltstack/salt — Issue #281: Ubuntu systems incorrectly identified as Debian
Author: mdfranz
Created: 2011-11-26 21:16:27+00:00
State: open

Currently /etc/debian-version is the only mechanism for detecting Debian distros

root@salt-master:~# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=11.04
DISTRIB_CODENAME=natty
DISTRIB_DESCRIPTION="Ubuntu 11.04"
root@salt-master:~# cat /etc/debian_version
squeeze/sid

-
* Grains (Ubuntu 11.04 LXC Container)
'cpuarch': 'x86_64',
'domain': '',
'fqdn': 'localhost',
'host': 'localhost',
'kernel': 'Linux',
'kernelrelease': '2.6.38-11-server',
'os': 'Debian',

* Facter (Ubuntu 11.04 LXC Container)
operatingsystem => Ubuntu
operatingsystemrelease => 11.04
kernel => Linux
kernelmajversion => 2.6
kernelrelease => 2.6.38-11-server
kernelversion => 2.6.38
lsbdistcodename => natty
lsbdistdescription => Ubuntu 11.04
lsbdistid => Ubuntu
lsbdistrelease => 11.04
lsbmajdistrelease => 11
is_virtual => false