rsyncd software facter
authorPeter Palfrader <peter@palfrader.org>
Fri, 3 Dec 2010 11:06:31 +0000 (12:06 +0100)
committerPeter Palfrader <peter@palfrader.org>
Fri, 3 Dec 2010 11:06:31 +0000 (12:06 +0100)
facts/software.rb

index e622d35..3a0fefc 100644 (file)
@@ -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