ohai
ohai copied to clipboard
packages provider inconsistent results
Description
i find debian packages listing inconsistent with one that rpm provides.
- rpm system has "release" portion
- deb system "release" is included in "version" portion
- some deb package names contain archtecture
zlib1g:amd64 - debian versions also include "epoch"
ideally i'd see:
- rpm systems include extra
archtag - deb systems include
archtag, extract it fromnameif needed - deb systems include
releasetag - epoch moved to extra tag
- installdate missing for both systems, add it
examples from systems
rpm system:
# knife node show fqdn -a packages
pld:
packages:
glibc-misc:
release: 21
version: 2.3.6
glibc64:
release: 21
version: 2.3.6
debian-7 system:
# knife node show fqdn -a packages
debian:
packages:
acpi:
version: 1.6-1
zlib1g:amd64:
version: 1:1.2.7.dfsg-13
Ohai Version
Ohai: 7.4.0, but packages is taken from ohai that was merged in v8.9.0 lib/ohai/plugins/packages.rb
Platform Version
Debian 7
#820 was merged adding:
- rpm: add epoch, arch
- deb: add arch
- deb: fix arch being part of the name attribute
however, there's still todo:
- deb: explode version to components (epoch, version, release), see questions in #820
- deb: add installdate attribute