RexOps / Rex

Rex, the friendly automation framework
https://www.rexify.org
708 stars 223 forks source link

Add CPU information to hardware gathering #935

Open ferki opened 8 years ago

ferki commented 8 years ago

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.

ferki commented 8 years ago

Maybe Sys::CPU can help us already with this one - though we might need to help with maintaining it.

hugendudel commented 8 years ago

I'll have a look at that

krimdomu commented 8 years ago

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)

krimdomu commented 8 years ago

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?

ferki commented 8 years ago

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.

krimdomu commented 8 years ago

@ferki i think both namespaces can be refactored and merged.