Move rsync ssl setup into the rsync module
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / software.rb
index 4404d6f..ba4c1be 100644 (file)
@@ -126,3 +126,22 @@ Facter.add("munin_async") do
                FileTest.exist?("/usr/share/munin/munin-async")
        end
 end
+Facter.add("samhain") do
+       setcode do
+               if FileTest.exist?("/usr/sbin/samhain")
+                       true
+               else
+                       ''
+               end
+       end
+end
+Facter.add("systemd") do
+       setcode do
+               init = '/sbin/init'
+               if File.symlink?(init) and File.readlink(init) == "/lib/systemd/systemd"
+                       true
+               else
+                       ''
+               end
+       end
+end