Add systemd factoid
[mirror/dsa-puppet.git] / modules / debian-org / lib / facter / software.rb
index 0843c25..ba989eb 100644 (file)
@@ -135,3 +135,12 @@ Facter.add("samhain") do
                end
        end
 end
+Facter.add("systemd") do
+       setcode do
+               if File.realpath('/sbin/init') == "/lib/systemd/systemd"
+                       true
+               else
+                       ''
+               end
+       end
+end