Hi folks,
I have a Forge module jgazeley/freeradius which is chiefly targeted at
CentOS-a-like but also works on Debian/Ubuntu. A user has raised an
issue that a custom fact provided with the module does not seem to work
properly on Ubuntu 15.10 with Ruby 2.1.9 and Facter 3.2.0. It is known
to work on CentOS 7 with Ruby 2.0.0 and Facter 2.4.6.
On Ubuntu, it seems that the fact does the Facter::Core::Execution.exec
properly and parses the returned value properly, but somehow fails to
return that value to Facter, so it returns nil.
The fact in question is:
https://github.com/djjudas21/puppet-freeradius/blob/master/lib/facter/freeradius_version.rb
And the issue where I've been trying to debug this with the user is:
https://github.com/djjudas21/puppet-freeradius/issues/35
I don't have easy access to an Ubuntu system for testing and I'm not
very experienced with Facter either. Is anyone able to suggest why this
might be broken on some platforms? Is there a change of behaviour in
Facter 3.x?
Also, I'm not sure if my logic to choose the correct FreeRADIUS binary
on each distro is very efficient. Ruby is not one of my strengths.
Anyone got any ideas for cleaning it up?
Thanks!
Jonathan
--
Jonathan Gazeley
Senior Systems Administrator
IT Services
University of Bristol
--
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/8ccc83cc-a801-4804-9c85-502379071a91%40bristol.ac.uk.
For more options, visit https://groups.google.com/d/optout.