On Feb 8, 2011, at 12:19 PM, Brian wrote: > On Feb 7, 9:14 pm, Gabriel Filion <lelu...@gmail.com> wrote: >> In all cases, the interface with an internal IP comes up higher in the >> output of ifconfig, and this makes the fact "ipaddress" take it as its >> value. >> >> Is there a way to force facter to chose a specific interface for the >> ipaddress value? > > I feel your pain! I have two facts, ipaddress_public and > ipaddress_private, that I defined to work around this. > > http://polibyte.com/blog/getting_ip_addresses_with_facter
This is really interesting. One change you might want to consider making is to say that a 169.*.*.* ipaddresses doesn't count as having a valid address. -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. 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.