From b198c12d9a44e340a287dbd1af1f4b9df4903e6b Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Mon, 17 Jul 2017 15:02:41 +0200 Subject: [PATCH] Add haveged facter --- modules/debian_org/lib/facter/software.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/modules/debian_org/lib/facter/software.rb b/modules/debian_org/lib/facter/software.rb index 2f018316a..58318fe48 100644 --- a/modules/debian_org/lib/facter/software.rb +++ b/modules/debian_org/lib/facter/software.rb @@ -157,3 +157,8 @@ Facter.add("tor_ge_0_2_9") do 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 -- 2.20.1