Issue #12116 has been updated by Josh Cooper.

Hi Mike,

Facter uses a wmi query to lookup the dnsdomain associated with the first 
network adapter that has IP enabled. Presumably, it's not finding any. Can you 
provide the output to the following command:

<pre>
C:\> wmic path win32_networkadapterconfiguration get ipaddress, dnsdomain, 
ipenabled
</pre>
----------------------------------------
Bug #12116: Windows domain and fqdn facts are empty
https://projects.puppetlabs.com/issues/12116

Author: Mike Carlson
Status: Unreviewed
Priority: Normal
Assignee: 
Category: 
Target version: 
Keywords: 
Branch: 
Affected Facter version: 


After following the documentation here:
http://projects.puppetlabs.com/projects/1/wiki/Puppet_Windows

I installed facter and puppet on a Windows 2003 Server, however, both domain 
and fqdn are "nil", and I am unable proceed any further:

<pre>
C:\>facter -v
1.6.5

C:\>facter fqdn

C:\>facter domain

C:\>facter hostname
OFFSITE-1
</pre>

Other facts are present:
<pre>
C:\>facter
architecture => i386
facterversion => 1.6.5
hardwaremodel => i686
hostname => OFFSITE-1
id => nt authority\system
ipaddress => 192.168.10.45
kernel => windows
kernelmajversion => 5.2
kernelrelease => 5.2.3790
kernelversion => 5.2.3790
macaddress => 00:22:19:99:E3:9E
manufacturer => Dell Inc.
memoryfree => 10.91 GB
memorysize => 15.99 GB
memorytotal => 15.99 GB
operatingsystem => windows
operatingsystemrelease => 5.2.3790
osfamily => windows
path => C:\Ruby187\bin;C:\Program Files (x86)\Windows Resource Kits\Tools\;C:\Pr
ogram Files (x86)\Seagate Software\NOTES\;C:\Program Files (x86)\Seagate Softwar
e\NOTES\DATA\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\Program
 Files\TortoiseSVN\bin;C:\Program Files\TortoiseGit\bin;/usr/sbin;/sbin
physicalprocessorcount => 8
processor0 => Intel(R) Pentium(R) III Xeon processor
processor1 => Intel(R) Pentium(R) III Xeon processor
processor2 => Intel(R) Pentium(R) III Xeon processor
processor3 => Intel(R) Pentium(R) III Xeon processor
processor4 => Intel(R) Pentium(R) III Xeon processor
processor5 => Intel(R) Pentium(R) III Xeon processor
processor6 => Intel(R) Pentium(R) III Xeon processor
processor7 => Intel(R) Pentium(R) III Xeon processor
processorcount => 8
productname => PowerEdge 2950
ps => tasklist.exe
puppetversion => 2.7.10
rubysitedir => C:/Ruby187/lib/ruby/site_ruby/1.8
rubyversion => 1.8.7
serialnumber => JTF7YH1
timezone => Pacific Standard Time
uptime => 63 days
uptime_days => 63
uptime_hours => 1526
uptime_seconds => 5495113
</pre>

This seems to work fine with a Windows 7 system:
<pre>
C:\tools\puppetlabs-facter-f16fcfa>facter -v
1.6.5

C:\tools\puppetlabs-facter-f16fcfa>facter hostname
LAP-MC

C:\tools\puppetlabs-facter-f16fcfa>facter domain
bayphoto.local

C:\tools\puppetlabs-facter-f16fcfa>facter fqdn
LAP-MC.bayphoto.local
</pre>


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://projects.puppetlabs.com/my/account

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Bugs" 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-bugs?hl=en.

Reply via email to