Added puppetlabs-firewall (required by puppetlabs-postgresql), updated the other modules.
This commit is contained in:
parent
5f4b7a3b72
commit
dee66abcdd
137 changed files with 11118 additions and 419 deletions
15
modules/firewall/lib/facter/iptables_persistent_version.rb
Normal file
15
modules/firewall/lib/facter/iptables_persistent_version.rb
Normal file
|
@ -0,0 +1,15 @@
|
|||
Facter.add(:iptables_persistent_version) do
|
||||
confine :operatingsystem => %w{Debian Ubuntu}
|
||||
setcode do
|
||||
# Throw away STDERR because dpkg >= 1.16.7 will make some noise if the
|
||||
# package isn't currently installed.
|
||||
cmd = "dpkg-query -Wf '${Version}' iptables-persistent 2>/dev/null"
|
||||
version = Facter::Util::Resolution.exec(cmd)
|
||||
|
||||
if version.nil? or !version.match(/\d+\.\d+/)
|
||||
nil
|
||||
else
|
||||
version
|
||||
end
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue