projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Migrate /etc/cron.d/puppet-nagios-hpsa to the puppet-nagios-wraps concat
[mirror/dsa-puppet.git]
/
modules
/
debian_org
/
lib
/
facter
/
software.rb
diff --git
a/modules/debian_org/lib/facter/software.rb
b/modules/debian_org/lib/facter/software.rb
index
47fa46a
..
58318fe
100644
(file)
--- a/
modules/debian_org/lib/facter/software.rb
+++ b/
modules/debian_org/lib/facter/software.rb
@@
-154,6
+154,11
@@
Facter.add("systemd") do
end
Facter.add("tor_ge_0_2_9") do
setcode do
end
Facter.add("tor_ge_0_2_9") do
setcode do
- system(%{dpkg -l tor >/dev/null 2>&1 && dpkg --compare-versions $(dpkg-query -W -f='${Version}' tor) ge 0.2.9})
+ system(%{test -n "$(dpkg-query -W -f='${Version}' tor 2>/dev/null)" && dpkg --compare-versions "$(dpkg-query -W -f='${Version}' tor)" ge 0.2.9})
+ end
+end
+Facter.add("haveged") do
+ setcode do
+ FileTest.exist?("/usr/sbin/haveged")
end
end
end
end