Hi 

I am running a version 'facterversion => 2.0.0-rc4' do you know if this 
uses /sbin/ip? 
does it adapt for ArchLinux which uses puts it in /usr/sbin/ip (judgin from 
`which ip`)
`facter ipaddress` and `facter fqdn` don't work for me. I don't know how to 
troubleshoot.
I just started really reading/playing about puppet today. 

I also tried the latest version available from rubygems and it still can't 
find the ipadress
or fqdn.

What could be the possible problems?


On Friday, 30 November 2012 14:19:28 UTC+2, Ashley Penney wrote:
>
>
> On Fri, Nov 30, 2012 at 6:59 AM, Bret Wortman 
> <br...@thewortmans.org<javascript:>
> > wrote:
>
>> Aha! The problem is that "ifconfig" doesn't return anything containing 
>> "inet addr:" in Fedora 17. The output looks like this:
>>
>> eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST>  mtu 1500
>>         inet 192.168.2.13  netmask 255.255.255.0  broadcast 192.168.2.255
>>         inet6 fe80::d6be:d9ff:fe92:1df5  prefixlen 64  scopeid 0x20<link>
>>         inet6 2001:470:1d:429:d6be:d9ff:fe92:1df5  prefixlen 64  scopeid 
>> 0x0<global>
>>         ether d4:be:d9:92:1d:f5  txqueuelen 1000  (Ethernet)
>>         RX packets 15939189  bytes 11636881674 (10.8 GiB)
>>         RX errors 0  dropped 0  overruns 0  frame 0
>>         TX packets 14236195  bytes 2245276793 (2.0 GiB)
>>         TX errors 0  dropped 0 overruns 0  carrier 0  collisions 0
>>         device interrupt 19  
>>
>> So it falls through to "host `hostname`", which isn't available because I 
>> need Puppet to configure freeipa-client for me, which it struggles to do. 
>> So I guess I have to hardcode the DNS server into my kickstart and then let 
>> puppet take care of the resolv.conf after that.
>>
>
> I have no idea if it cleanly merges but if you're feeling brave you could 
> grab https://github.com/puppetlabs/facter/pull/267 and see if that 
> magically does the right thing for F17.  It uses /sbin/ip in preference to 
> ifconfig, so it should work a lot better.  I couldn't get it merged so it's 
> just sat and gotten a little stale but hopefully does 99% of what you need 
> still if you can merge it for testing. 
>  

-- 
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/-/NhkJH68dxEsJ.
To post to this group, send email to puppet-users@googlegroups.com.
To unsubscribe from this group, send email to 
puppet-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to