From 946c66e0abd4bba8751167d5c0d4b87fe8a8d66a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Fri, 3 Dec 2010 12:06:31 +0100 Subject: [PATCH] rsyncd software facter --- facts/software.rb | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/facts/software.rb b/facts/software.rb index e622d35d1..3a0fefcd0 100644 --- a/facts/software.rb +++ b/facts/software.rb @@ -72,3 +72,8 @@ Facter.add("syslogversion") do %x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -b1}.chomp end end +Facter.add("rsyncd") do + setcode do + FileTest.exist?("/etc/rsyncd.conf") + end +end -- 2.20.1