Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Projets publics
puppet-freeradius
Commits
4e5ddeba
Commit
4e5ddeba
authored
Oct 27, 2014
by
Jonathan Gazeley
Browse files
Add fact to report FreeRADIUS version number
parent
15d8c618
Changes
1
Hide whitespace changes
Inline
Side-by-side
lib/facter/freeradius_version.rb
0 → 100644
View file @
4e5ddeba
# 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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment