Christophe L
2012-May-21 07:31 UTC
[Puppet Users] Look for existing Facter Modules for retrieving some system description information
Hello,
I have not been able to find existing Facter modules for retrieving
the information I listed below.
Could you point me on some modules which would anwer my needs please ?
Below the list of information I would need to retrieve.
Thanks in advance for your help.
Best regards,
Christophe
1) Bios Information
"version":"6.00", "bios_revision":"4.6",
"release_date":"10/13/2009","vendor":"Phoenix
Technologies LTD",
2) processor related information
"max_speed":"30000 MHz", "signature":"Type 0,
Family 6, Model 30,
Stepping 5", "voltage":"3.3 V"
"Socket Designation":"CPU socket #0",
"Version":"Pentium(R) Pro",
"Current Speed":"2533 MHz", "ID":"E5 06 01 00
FF FB EB 0F",
"Manufacturer":"GenuineIntel",
"Family":"Pentium Pro",
"cache_size":"8192 KB",
3) mouting points list
"/dev/sda1":{
"kb_size":"15791024",
"uuid":"88eb9c66-5ce8-458e-
a7da-3b20cfcf3278", "mount_options":[ "rw",
"errors=remount-ro" ],
"fs_type":"ext3", "mount":"/",
4) memory chip related information
"Installed Size":"1024 MB (Single-bank Connection)",
"record_id":"0x000D", "Socket
Designation":"RAM socket #0", "Enabled
Size":"1024 MB (Single-bank Connection)", "Error
Status":"OK",
"Type":"EDO DIMM"
5) network related information
"default_gateway":"10.66.112.1"
6) block devices
"sda":{ "model":"Virtual disk",
"size":"33554432", "timeout":"180",
"rev":"1.0", "removable":"0",
"vendor":"VMware", "state":"running"
7) users and groups
"group":{ "mygroup":{ "gid":1000,
"passwd":{ "myuser":{ "gecos":"My
User,,,", "gid":1000, "dir":"/home/
myuser", "uid":1000, "shell":"/bin/bash"
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Krzysztof Wilczynski
2012-May-21 10:15 UTC
[Puppet Users] Re: Look for existing Facter Modules for retrieving some system description information
Hi, On Monday, May 21, 2012 8:31:48 AM UTC+1, Christophe L wrote:> > Hello, > > I have not been able to find existing Facter modules for retrieving > the information I listed below. > > Could you point me on some modules which would anwer my needs please ? > > Below the list of information I would need to retrieve. > > Thanks in advance for your help. > > Best regards, > Christophe > > 1) Bios Information > > "version":"6.00", "bios_revision":"4.6", > "release_date":"10/13/2009","vendor":"Phoenix Technologies LTD", > > 2) processor related information > > "max_speed":"30000 MHz", "signature":"Type 0, Family 6, Model 30, > Stepping 5", "voltage":"3.3 V" > "Socket Designation":"CPU socket #0", "Version":"Pentium(R) Pro", > "Current Speed":"2533 MHz", "ID":"E5 06 01 00 FF FB EB 0F", > "Manufacturer":"GenuineIntel", "Family":"Pentium Pro", > "cache_size":"8192 KB", > > 3) mouting points list > > "/dev/sda1":{ > "kb_size":"15791024", "uuid":"88eb9c66-5ce8-458e- > a7da-3b20cfcf3278", "mount_options":[ "rw", "errors=remount-ro" ], > "fs_type":"ext3", "mount":"/", > > > 4) memory chip related information > > "Installed Size":"1024 MB (Single-bank Connection)", > "record_id":"0x000D", "Socket Designation":"RAM socket #0", "Enabled > Size":"1024 MB (Single-bank Connection)", "Error Status":"OK", > "Type":"EDO DIMM" > > 5) network related information > > "default_gateway":"10.66.112.1" > > 6) block devices > > "sda":{ "model":"Virtual disk", "size":"33554432", "timeout":"180", > "rev":"1.0", "removable":"0", "vendor":"VMware", "state":"running" > > 7) users and groups > > "group":{ "mygroup":{ "gid":1000, > "passwd":{ "myuser":{ "gecos":"My User,,,", "gid":1000, "dir":"/home/ > myuser", "uid":1000, "shell":"/bin/bash"Where do you look for these? Some of them are already there in Facter, others can be found on people''s github profiles (including mine). Google Fu needs working on a little :) KW -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/SMapjLfr-XwJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.
Christophe L
2012-May-24 13:13 UTC
[Puppet Users] Re: Look for existing Facter Modules for retrieving some system description information
Hello,
Thanks for pointing your "kwilczynski" github repo, it gave me most of
the
information I was looking for !
In the meantime, I found two other useful facter modules / facts but there
is still some information for which I haven''t found any fact.
I put a list of information below, does anyone know facts or facter module
which would be able to extract the below information please ?
I''m looking on Google for facts / facter modules, but I find it
difficult
to find facts or facter module for my needs (and I''m used to find what
I''m
looking for on google usually ;), but this is only my point of view, you
may disagree :)
Thanks in advance
Best regards,
Christophe
- about processors / cpus
max_speed: 30000 MHz
voltage: 3.3 V
Version: Pentium(R) Pro
Current Speed: 2533 MHz
Manufacturer: GenuineIntel
Family: Pentium Pro
- about memory socket
Installed Size: 1024 MB (Single-bank Connection)
Enabled Size: 1024 MB (Single-bank Connection)
Type: EDO DIMM
- about mount points, is there a way to have the information returned by
puppet resource mount
as facts ?
Le lundi 21 mai 2012 14:15:32 UTC+4, matti a écrit :>
> Hi,
>
> On Monday, May 21, 2012 8:31:48 AM UTC+1, Christophe L wrote:
>>
>> Hello,
>>
>> I have not been able to find existing Facter modules for retrieving
>> the information I listed below.
>>
>> Could you point me on some modules which would anwer my needs please ?
>>
>> Below the list of information I would need to retrieve.
>>
>> Thanks in advance for your help.
>>
>> Best regards,
>> Christophe
>>
>> 1) Bios Information
>>
>> "version":"6.00",
"bios_revision":"4.6",
>>
"release_date":"10/13/2009","vendor":"Phoenix
Technologies LTD",
>>
>> 2) processor related information
>>
>> "max_speed":"30000 MHz",
"signature":"Type 0, Family 6, Model 30,
>> Stepping 5", "voltage":"3.3 V"
>> "Socket Designation":"CPU socket #0",
"Version":"Pentium(R) Pro",
>> "Current Speed":"2533 MHz", "ID":"E5
06 01 00 FF FB EB 0F",
>> "Manufacturer":"GenuineIntel",
"Family":"Pentium Pro",
>> "cache_size":"8192 KB",
>>
>> 3) mouting points list
>>
>> "/dev/sda1":{
>> "kb_size":"15791024",
"uuid":"88eb9c66-5ce8-458e-
>> a7da-3b20cfcf3278", "mount_options":[ "rw",
"errors=remount-ro" ],
>> "fs_type":"ext3", "mount":"/",
>>
>>
>> 4) memory chip related information
>>
>> "Installed Size":"1024 MB (Single-bank
Connection)",
>> "record_id":"0x000D", "Socket
Designation":"RAM socket #0", "Enabled
>> Size":"1024 MB (Single-bank Connection)", "Error
Status":"OK",
>> "Type":"EDO DIMM"
>>
>> 5) network related information
>>
>> "default_gateway":"10.66.112.1"
>>
>> 6) block devices
>>
>> "sda":{ "model":"Virtual disk",
"size":"33554432", "timeout":"180",
>> "rev":"1.0", "removable":"0",
"vendor":"VMware", "state":"running"
>>
>> 7) users and groups
>>
>> "group":{ "mygroup":{ "gid":1000,
>> "passwd":{ "myuser":{ "gecos":"My
User,,,", "gid":1000, "dir":"/home/
>> myuser", "uid":1000,
"shell":"/bin/bash"
>
>
> Where do you look for these?
>
> Some of them are already there in Facter, others can be found on
people''s
> github profiles (including mine). Google Fu needs working on a little :)
>
> KW
>
--
You received this message because you are subscribed to the Google Groups
"Puppet Users" group.
To view this discussion on the web visit
https://groups.google.com/d/msg/puppet-users/-/OWvYB4ooeKkJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to
puppet-users+unsubscribe@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/puppet-users?hl=en.
Krzysztof Wilczynski
2012-May-24 17:05 UTC
[Puppet Users] Re: Look for existing Facter Modules for retrieving some system description information
Hi, On Thursday, May 24, 2012 2:13:08 PM UTC+1, Christophe L wrote:> > Hello, > > Thanks for pointing your "kwilczynski" github repo, it gave me most of the > information I was looking for ! >Glad you found it useful.> I put a list of information below, does anyone know facts or facter module > which would be able to extract the below information please ? >[...] - about processors / cpus> max_speed: 30000 MHz > voltage: 3.3 V > Version: Pentium(R) Pro > Current Speed: 2533 MHz > Manufacturer: GenuineIntel > Family: Pentium Pro >Above wound not be hard to do.> - about memory socket > Installed Size: 1024 MB (Single-bank Connection) > Enabled Size: 1024 MB (Single-bank Connection) > Type: EDO DIMM >Ah, you see this is where it gets nasty. Memory related details like that can be read from DMI (Desktop Management Interface) and/or SMBIOS (System Management BIOS), but unfortunately there is not standard which dictates what fields are mandatory and their format. Therefore, most often information conceived there is bad... like REALY bad, and very inconsistent between vendors (if they include anything at all). In other words, there is no easy and consistent way to get this data.> - about mount points, is there a way to have the information returned by > puppet resource mount > as facts ? >Is the mount points face not enough? Or you want to get some form of auditing? KW -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To view this discussion on the web visit https://groups.google.com/d/msg/puppet-users/-/YM4D1yQOOWEJ. To post to this group, send email to puppet-users@googlegroups.com. To unsubscribe from this group, send email to puppet-users+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/puppet-users?hl=en.