Commit 70bba045 authored by Matt Taggart's avatar Matt Taggart

new shorewall_version fact, switch shorewall_major_version to use it

from https://0xacab.org/riseup-puppet-recipes/shorewall/commit/0cd2a305f7fd9ba830a1fa3de25428ffa71d39f7#note_92590
parent 4da1590e
Facter.add("shorewall_major_version") do
confine :shorewall_version => /\d/
setcode do
Facter::Util::Resolution.exec('shorewall version').split('.').first || nil
Facter.value(:shorewall_version).split('.').first
end
end
Facter.add("shorewall_version") do
setcode 'shorewall version'
end
Markdown is supported
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