On Thursday, November 29, 2012 3:29:51 PM UTC-5, pmbuko wrote: > On Nov 29, 2012, at 3:16 PM, Bret Wortman wrote: > > I think the problem I'm having with not being able to run puppet for up to > 90 minutes after a reboot is related to this error, which goes away some > time in that time period: > > # puppet agent -t > Info: Retrieving plugin > Timed out seeking value for ipaddress > Timed out seeking value for ipaddress > > What exactly is facter doing that doesn't work immediately after the boot, > but does start working at some point after? Is there a package that isn't > getting installed except as a dependency somewhere once things start > creeping forward? > > > That depends on your operating system. Perusing > https://github.com/puppetlabs/facter/blob/master/lib/facter/ipaddress.rb will > show you exactly what it's doing. If you're using a *nix variant, facter > uses ifconfig. If windows, it uses the socket library. > > 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. What about F17 sites that don't use DNS and instead rely on host tables? This will fail completely, won't it? -- > Peter > > -- 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/-/wvwPG9BD9EYJ. 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.