[Puppet Users] Re: Mac Domainname and facter

2009-09-29 Thread engle
OK, seems that there are two places where a resolv.conf file is located. This is on Max OS X 10.5.8. /private/etc/resolv.conf /private/var/run/resolv.conf The only one of these that gets updated via DHCP is the /private/var/ run/resolv.conf file. Facter does not seem to look at this file

[Puppet Users] Re: Mac Domainname and facter

2009-09-29 Thread Nigel Kersten
On Tue, Sep 29, 2009 at 1:30 PM, engle kurt.en...@gmail.com wrote: OK, seems that there are two places where a resolv.conf file is located. This is on Max OS X 10.5.8. /private/etc/resolv.conf /private/var/run/resolv.conf The only one of these that gets updated via DHCP is the

[Puppet Users] Re: Mac Domainname and facter

2009-09-23 Thread Paul Nasrat
2009/9/23 engle kurt.en...@gmail.com: So, when I issue the command: ipconfig getpacket en0 I get the proper domain name from DHCP. But, 'facter', does not display this when reporting the 'domain' or in the FQDN . Both of these list local for the domain name of the computer. In addition,

[Puppet Users] Re: Mac Domainname and facter

2009-09-23 Thread Allan Marcus
Compare: hostname to facter | grep -i FQDN they should be the same. The domain name is just going to be the FQDN minus everything upto the first period. --- Thanks, Allan Marcus 505-667-5666 On Sep 22, 2009, at 5:07 PM, engle wrote: So, when I issue the command: ipconfig getpacket

[Puppet Users] Re: Mac Domainname and facter

2009-09-23 Thread engle
Yes, that is true. Hostname is reporting wrong and so is facter. The issue is that the mac is picking up the correct domainname from the DHCP server, but facter is not. The 'domainname' command returns nothing. The other issue is that the 'ipconfig getpacket en0' command returns the proper

[Puppet Users] Re: Mac Domainname and facter

2009-09-23 Thread Nigel Kersten
On Tue, Sep 22, 2009 at 4:07 PM, engle kurt.en...@gmail.com wrote: So, when I issue the command: ipconfig getpacket en0 I get the proper domain name from DHCP. But, 'facter', does not display this when reporting the 'domain' or in the FQDN . Both of these list local for the domain name of

[Puppet Users] Re: Mac Domainname and facter

2009-09-23 Thread engle
Here is the output from one of the many computers that are exhibiting this behavior: resolv.conf: domain lane.edu. nameserver 158.165.1.26 nameserver 158.165.1.20 sh-3.2# ipconfig getpacket en0 op = BOOTREPLY htype = 1 flags = 0 hlen = 6 hops = 1 xid = 485302252 secs = 0 ciaddr = 0.0.0.0 yiaddr

[Puppet Users] Re: Mac Domainname and facter

2009-09-23 Thread Allan Marcus
domainname is only relevant if you are using NIS. The larger issue here, IMHO, is why the hostname command is not returning the correct host name. Sounds like you may hve a problem with your DNS resolution. We have noticed _sometimes_ that if our domain name is not in the search domain

[Puppet Users] Re: Mac Domainname and facter

2009-09-22 Thread engle
So, when I issue the command: ipconfig getpacket en0 I get the proper domain name from DHCP. But, 'facter', does not display this when reporting the 'domain' or in the FQDN . Both of these list local for the domain name of the computer. In addition, in my 'resolv.conf', the correct domain name

[Puppet Users] Re: Mac Domainname and facter

2009-09-18 Thread Allan Marcus
/Library/Ruby/Site/1.8/facter/domain.rb I think for the Mac you need to set the search domain in the Network System Pref, and that is what facter uses, but I'm not sure I'm reading the code right. --- Thanks, Allan Marcus 505-667-5666 On Sep 18, 2009, at 10:11 AM, engle wrote: We

[Puppet Users] Re: Mac Domainname and facter

2009-09-18 Thread Allan Marcus
whoops, /Library/Ruby/Site/1.8/facter/hostname.rb also seems to play a part. The hostname command is used, then it's parsed with regex magic. --- Thanks, Allan Marcus 505-667-5666 On Sep 18, 2009, at 12:16 PM, Allan Marcus wrote: /Library/Ruby/Site/1.8/facter/domain.rb I think for the

[Puppet Users] Re: Mac Domainname and facter

2009-09-18 Thread Nigel Kersten
On Fri, Sep 18, 2009 at 11:16 AM, Allan Marcus al...@lanl.gov wrote: /Library/Ruby/Site/1.8/facter/domain.rb I think for the Mac you need to set the search domain in the Network System Pref, and that is what facter uses, but I'm not sure I'm reading the code right. No, if you're using DHCP