Sha256: 66f1467ab1fc39b8d78d20201b23cdb865a41d50d22d8e20f2e6cf5e54aebfeb

Contents?: true

Size: 234 Bytes

Versions: 20

Compression:

Stored size: 234 Bytes

Contents

Facter.add(:iptables_version) do
  confine :kernel => :linux
  setcode do
    version = Facter::Util::Resolution.exec('iptables --version')
    if version
      version.match(/\d+\.\d+\.\d+/).to_s
    else
      nil
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
freighthop-0.6.1 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.6.0 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.5.2 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.5.1 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.5.0 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.4.1 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.4.0 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.3.3 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.3.2 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.3.1 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.3.0 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.2.1 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.2.0 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.1.0 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.0.6 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.0.5 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.0.4 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.0.3 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.0.2 modules/firewall/lib/facter/iptables_version.rb
freighthop-0.0.1 modules/firewall/lib/facter/iptables_version.rb