Facter

Facter è un programma, fornito con il pacchetto di Puppet che raccoglie diverse informazioni locali che vengono comunicate al PuppetMaster come coppie di variabili-valore e che possono essere utilizzate per la generazione delle risorse da applicare al sistema.
E' possibile creare dei fact custom che assegnano a nuove variabili l'output di comandi arbitrari.

[root@localhost ~]# facter
architecture => i386
domain => localdomain
facterversion => 1.5.7
fqdn => localhost.localdomain
hardwareisa => i686
hardwaremodel => i686
hostname => localhost
id => root
interfaces => eth0,sit0
ipaddress => 10.42.100.102
ipaddress_eth0 => 10.42.100.102
is_virtual => false
kernel => Linux
kernelmajversion => 2.6
kernelrelease => 2.6.18-164.el5
kernelversion => 2.6.18
lsbdistcodename => Final
lsbdistdescription => CentOS release 5.4 (Final)
lsbdistid => CentOS
lsbdistrelease => 5.4
lsbmajdistrelease => 5
lsbrelease => :core-3.1-ia32:core-3.1-noarch:graphics-3.1-ia32:graphics-3.1-noarch
macaddress => 08:00:27:9B:FA:88
macaddress_eth0 => 08:00:27:9B:FA:88
manufacturer => innotek GmbH
memoryfree => 400.38 MB
memorysize => 503.27 MB
netmask => 255.255.255.0
netmask_eth0 => 255.255.255.0
network_eth0 => 10.42.100.0
operatingsystem => CentOS
operatingsystemrelease => 5.4
path => /usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin
physicalprocessorcount => 1
processor0 => Intel(R) Core(TM)2 Quad CPU    Q8200  @ 2.33GHz
processorcount => 1
productname => VirtualBox
ps => ps -ef
puppetversion => 0.25.4
rubysitedir => /usr/lib/ruby/site_ruby/1.8
rubyversion => 1.8.5
selinux => true
selinux_enforced => true
selinux_mode => targeted
selinux_policyversion => 21
serialnumber => 0
sshdsakey => AAAAB3NzaC1kc3MAAACBAIVRrNtnQ3E5WdWoqeym5auOIugVYgRgOLzgRlALGU8xF6sFGAhakybA0IHqqz4bgzluGOC81MCjW0R3an3F0Qeal5v7/WEwP8XZeEvpiuW3QhynR0BpA5mxNzlz3Aof8g/6GvBkQOvrDUpqekOmOI+or+bBWipO/RiIynBPAclDAAAAFQDfMoj8yzBrDiWQnX5TvCNumxi6ewAAAIB4xzUl8vWezDTeBnBX0hSoQFWptIlbhkMf4aRz/3LYLjsCpTX4oY3qYbRL7kmHZTAr1KKSUDONzYFNt+CEAiCprZ9RLcV07nGI+blFF6cjCXfZSZ4a2Hth70JJG6d1u49zjZXihqqPOkJZEUxrxinR+1stzRr2CvyjfIkf9dgDMQAAAIBzE/4wB7eKx+qd3is5zShe7mBmF9RmIv34uXiV+uHUdSxI6+QOh+y5ZytKSKSssAlSpF8VsyxGrNUrguZ7z9LOH/juCNrQgKIiQ4jNFIBmMXrrFB0Yvn8BNCyEt17Lc1YzI+JZz5H2H7wQD2vGXXxTWtWiqwkn8ibd3ygqYXc/zg==
sshrsakey => AAAAB3NzaC1yc2EAAAABIwAAAQEA3TCEVSRTEZYJLu2jxSGZqEBRknIUB8wyh/omAki32ptd84H3t39BSWuovYksUhy89uLQq6QUNRbfom5jWXupY+Dhocphgg7ObbQ877rRc1a2sDurz3zwHbAKs1JcmbQOpU647nCsRTB+/uFhvwwWSzBAuTe4amUjx2Hb0dxP5peqdrZPe805zahakli4h12Ll/NTbSxt+12U4r6o2u6DJ/iNlzIZnPvrqDKvcGnFM4t8Nhe8AoThyaAFgco7eMWVkpiYamcmseMrimqbEkoGP48EQhQuvm3B7TVPhei5JpgxyEiwu7+p7Zw8k1MsA7c+2ZM2LU7wYcu+SVbvoW5vEw==
swapfree => 1023.99 MB
swapsize => 1023.99 MB
timezone => CEST
uniqueid => 007f0100
uptime => 1 min
uptime_days => 0
uptime_hours => 0
uptime_seconds => 100
virtual => physical

Privacy Policy