X-Git-Url: https://git.adam-barratt.org.uk/?a=blobdiff_plain;f=facts%2Fsoftware.rb;h=3a0fefcd0064f52200e669573e0c5ec2df2d981d;hb=4f80d0392bf55eb18d241a9c872bf03ec12e6574;hp=e622d35d1fc6d5d87c01543fc266fdde9ad2531e;hpb=b481e985d54ce3697a3e0e46d5aea3d5f6263d39;p=mirror%2Fdsa-puppet.git 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