When I type facter on the command line without parameters I get a list of several facts. If I try to include a specific fact with the command, I sometimes get a value back and other times I don't. It seems that certain facts aren't returning values on the command line. Inside of puppet they still appear to work, but it makes for difficult debugging. Here's an example.

# facter
architecture => x86_64
facterversion => 1.5.7
fqdn => longhair.domain.com
hardwareisa => x86_64
hardwaremodel => x86_64
hostname => longhair
...
physicalprocessorcount => 2
processor0 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processor1 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processor2 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processor3 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processor4 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processor5 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processor6 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processor7 => Intel(R) Xeon(R) CPU           X5550  @ 2.67GHz
processorcount => 8
productname => HP Z800 Workstation
ps => ps -ef
puppetversion => 0.25.5
...
swapfree => 7.81 GB
swapsize => 7.81 GB
...
Now running facter with a specific facts...

# facter physicalprocessorcount
2
# facter processorcount
# facter processor0
# facter hardwaremodel
x86_64
# facter swapfree
#


--
You received this message because you are subscribed to the Google Groups "Puppet 
Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to