# Returns true or false depending on if the OpenBSD
# packet filter is running or not
Facter.add("pf_running") do
setcode do
(%x{/sbin/pfctl -si}.chomp =~ /^status.+enabled/i) ? "running" : "stopped"
end
end