Issue #20229 has been updated by Jeff McCune.
Also, are you sure you've checked out my topic branch that contains the proposed fix? It appears that you may have the `master` branch checked out since `facterversion` is reporting 2.0.0-rc4. If you have my branch checked out, you should get a `facterversion` value of `1.7.0`. You can checkout my topic branch using: <pre> $ git remote add jeffmccune git://github.com/jeffmccune/facter.git $ git fetch jeffmccune $ git branch fix_netmask_scanner jeffmccune/fix_netmask_scanner $ git checkout fix_netmask_scanner </pre> Finally it might be easier for you to use bundler instead of explicitly setting `RUBYLIB`. Once you've checked out my `fix_netmask_scanner` topic branch, then it's pretty easy to run Facter from source using bundler: <pre> $ git checkout fix_netmask_scanner Switched to branch 'fix_netmask_scanner' $ bundle install --path .bundle/gems/ Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/.. Resolving dependencies... Installing rake (10.0.3) Installing coderay (1.0.9) Installing diff-lcs (1.1.3) Using facter (1.7.0) from source at . Installing json (1.7.7) with native extensions Installing metaclass (0.0.1) Installing method_source (0.8.1) Installing mocha (0.10.5) Installing slop (3.4.3) Installing pry (0.9.12) Installing rspec-core (2.11.1) Installing rspec-expectations (2.11.3) Installing rspec-mocks (2.11.3) Installing rspec (2.11.0) Installing rspec-puppet (0.1.6) Installing puppetlabs_spec_helper (0.4.1) Installing redcarpet (2.2.2) with native extensions Installing watchr (0.7) Installing yard (0.8.5.2) Using bundler (1.2.4) Your bundle is complete! It was installed into ./.bundle/gems </pre> Finally, with the bundle of all the dependencies installed in isolation, it's easy to run Facter from the development topic branch: <pre> $ bundle exec facter netmask 255.255.255.0 </pre> Hope this helps, -Jeff ---------------------------------------- Bug #20229: facter 1.7.0 network facts not working https://projects.puppetlabs.com/issues/20229#change-89837 * Author: Niels Abspoel * Status: In Topic Branch Pending Review * Priority: Normal * Assignee: * Category: interface * Target version: 1.7.x * Keywords: archlinux netmask * Branch: https://github.com/puppetlabs/facter/pull/432 * Affected Facter version: 1.7.0 ---------------------------------------- netmask fact doesn't work on archlinux with facter 1.7.0 <pre> sudo facter -p --debug value for ipaddress6_enp5s0 is still nil value for netmask_enp5s0 is still nil value for mtu_enp5s0 is still nil value for ipaddress_enp6s0 is still nil value for ipaddress6_enp6s0 is still nil value for netmask_enp6s0 is still nil value for mtu_enp6s0 is still nil value for ipaddress6_lo is still nil value for macaddress_lo is still nil value for netmask_lo is still nil value for mtu_lo is still nil value for ipaddress6 is still nil but if I do an ifconfig: ifconfig enp5s0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet XXX.XXX.XXX.XXX netmask 255.255.255.0 broadcast XXX.XXX.XXX.XXX inet6 XXXX::XXXX:XXXX:XXXX:XXXX prefixlen 64 scopeid 0x20<link> ether XX:XX:XX:XX:XX:XX txqueuelen 1000 (Ethernet) RX packets 184710 bytes 210205733 (200.4 MiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 105984 bytes 20553531 (19.6 MiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536 inet 127.0.0.1 netmask 255.0.0.0 inet6 ::1 prefixlen 128 scopeid 0x10<host> loop txqueuelen 0 (Local Loopback) RX packets 61 bytes 8660 (8.4 KiB) RX errors 0 dropped 0 overruns 0 frame 0 TX packets 61 bytes 8660 (8.4 KiB) TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0 </pre> in util/netmask.rb and util/ip.rb some regex needs to be adjusted. -- You have received this notification because you have either subscribed to it, or are involved in it. To change your notification preferences, please click here: http://projects.puppetlabs.com/my/account -- You received this message because you are subscribed to the Google Groups "Puppet Bugs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/puppet-bugs?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
