Skip to content
Snippets Groups Projects
Commit f06133ea authored by Jonathan Gazeley's avatar Jonathan Gazeley
Browse files

Add fact for FreeRADIUS major version

parent 6a8cba59
No related branches found
No related tags found
No related merge requests found
# Grab the FreeRADIUS version from the output of radiusd -v
if %x{which radiusd 2>/dev/null | wc -l}.chomp.to_i > 0
Facter.add(:freeradius_maj_version) do
setcode do
Facter::Core::Execution.exec('radiusd -v').split(/\n/)[0].match(/FreeRADIUS Version (\d)\.\d\.\d/)[1]
end
end
end
File moved
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment