Open ferki opened 8 years ago
Maybe Sys::CPU can help us already with this one - though we might need to help with maintaining it.
I'll have a look at that
There are 2 Problems with Sys::CPU. The first is, it is a XS module, that means we can't monkey patch this module to get the system info from remote system.
The second is, i think this module is not maintained anymore (at least not on a regular basis)
Currently rex uses dmidecode
to get the cpu information. If this doesn't work we need to check if dmidecode is available on the remote system and print a warning if not.
If dmidecode is available, maybe the ouput changed.
@ferki can you post the output of dmidecode from one of your systems?
Ok, after all, I think it's only a confusion/misunderstanding about what Rex::Hardware
and Rex::Inventory
are for. The latter do return most of the information mentioned in the opening comment.
@ferki i think both namespaces can be refactored and merged.
Currently it seems CPU information are missing from hardware gethering, but I think things like model name, number of cores/threads, flags, vendor id can be useful for quick querying and/or templating.