From: Peter Palfrader Date: Fri, 3 Dec 2010 11:06:31 +0000 (+0100) Subject: rsyncd software facter X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=946c66e0abd4bba8751167d5c0d4b87fe8a8d66a;p=mirror%2Fdsa-puppet.git rsyncd software facter --- 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