kwilczynski/facter-facts — Issue #2: default_gateway facter warning
Author: chewie71
Created: 2011-11-22 22:32:16+00:00
State: open

I've added your default_gateway.rb facter to an ntp module I have. I use it to determine the NTP server to check (the default gateway) It works fine on Ubuntu, but on my RHEL5 and CentOS5 hosts I get this warning....and the module doesn't run correctly.

I have puppet 2.7.6 installed on the hosts.

```# puppet agent --server puppet --test
/usr/lib/ruby/site_ruby/1.8/puppet/type/file.rb:48: warning: parenthesize argument(s) for future version
info: Retrieving plugin
notice: /File[/var/lib/puppet/lib/facter]/ensure: created
notice: /File[/var/lib/puppet/lib/facter/default_gateway.rb]/ensure: defined content as '{md5}76fd843002e5be7cd81710f7322536a5'
notice: /File[/var/lib/puppet/lib/puppet/facter/default_gateway.rb]/ensure: removed
info: Loading downloaded plugin /var/lib/puppet/lib/facter/default_gateway.rb
err: Could not load downloaded file /var/lib/puppet/lib/facter/default_gateway.rb: no block given
Could not retrieve operatingsystem: no block given
info: Loading facts in default_gateway
warning: Could not load fact file /var/lib/puppet/lib/facter/default_gateway.rb: no block given
info: Loading facts in default_gateway
warning: Could not load fact file /var/lib/puppet/lib/facter/default_gateway.rb: no block given
err: Could not retrieve catalog from remote server: Error 400 on SERVER: No matching value for selector param 'Linux' at /etc/puppet/modules/core_packages/manifests/params.pp:5 on node rails.wiu.edu
warning: Not using cache on failed catalog
err: Could not retrieve catalog; skipping run
```