Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (11 sloc) 236 Bytes
Facter.add(:ip6tables_version) do
confine :kernel => :linux
setcode do
version = Facter::Util::Resolution.exec('ip6tables --version')
if version
version.match(/\d+\.\d+\.\d+/).to_s
else
nil
end
end
end
Jump to Line
Something went wrong with that request. Please try again.