Point taken on perl overkill .. trying to get something working and
copy/pasted someone else's solution ;)
In any case, I expect this to get all of the non-localhost interface
names, sort them, and return me the IP address of the last in the
list.
When run from commandline by name it works great. When I run facter
alone (show all facts) or Puppet runs it it appears to instead give me
the first one in the list.
> --
> You received this message because you are subscribed to the Google Groups
> "Puppet Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
puppet-users...@googlegroups.com.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/puppet-users/f0aa94a6-aa55-4420-97f0-1f82c55c6207%40googlegroups.com.
>
> For more options, visit
https://groups.google.com/d/optout.