Commit 4e5ddeba authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Add fact to report FreeRADIUS version number

parent 15d8c618
# Grab the FreeRADIUS version from the output of radiusd -v
Facter.add(:freeradius_version) do
setcode do
Facter::Core::Execution.exec('radiusd -v').split(/\n/)[0].match(/FreeRADIUS Version (\d\.\d\.\d)/)[1]
end
end
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment