On Tue, Jul 21, 2015 at 11:47 AM, Fabrice Bacchella < fabrice.bacche...@orange.fr> wrote:
> > > Le 21 juil. 2015 à 20:33, Peter Huene <peter.hu...@puppetlabs.com> a > écrit : > > > > > Thus there would be no "eth0:1" in the interfaces list; it would just > show up as the first element in the secondary array. e.g. eth0:1 becomes > eth0.secondary.0, eth0:2 becomes eth0.secondary.1, etc. > > > > Thoughts on this approach? It would better model the output of command > line tools that don't distinguish interfaces between "iface" and "iface:x". > > > > Alternatively, we could keep eth0:1 in the list and have a reference to > the primary interface like you suggested. I'm open to either approach. > > I prefer to have no eth0:1 in the interfaces too, but it can break > comptability with legacy code. I'm currently switching to facter 3, so > that's not a problem for me, other might disagree. > Facter 2.x parsed the output of ifconfig, which I suspect did not list secondary interfaces in the output or, worse, Facter parsed the output such that the addresses of an interface were actually overridden by subsequent lines of output (historically, there were a few bugs around that). Facter 3.x uses the getifaddrs function to enumerate the interfaces directly from the kernel, so it isn't susceptible to that particular problem, although as you've discovered it returns unique interfaces for what should be logically considered "secondary". If you have access to Facter 2.x on this same system, I'd be curious to see if it would output the secondary interface / address information. If not, I think we could consider Facter's 3.x behavior to be a bug and fix it by moving the secondary interfaces to where they belong. > > -- > 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+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/puppet-users/6F5D8E9E-DC38-402B-B254-85949A7DDC81%40orange.fr > . > For more options, visit https://groups.google.com/d/optout. > -- *Join us at **PuppetConf 2015, October 5-9 in Portland, OR - *www. <http://www.google.com/url?q=http%3A%2F%2Fwww.&sa=D&sntz=1&usg=AFQjCNEnS7itqgvQV3E4Se1fu4Um_UapSw> 2015.puppetconf.com <http://www.google.com/url?q=http%3A%2F%2F2015.puppetconf.com&sa=D&sntz=1&usg=AFQjCNE1uQL4Sh23Vr-XkPLa4xfNcoXSog> *Register early to save 40%!* -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/puppet-users/CACZQQfNRAEZVMavOdiiFecj%2BiCgWhbJbCGUEkFbOCzHMP3_Nyw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.