a haproxy facter
authorPeter Palfrader <peter@palfrader.org>
Wed, 30 May 2018 08:16:25 +0000 (10:16 +0200)
committerPeter Palfrader <peter@palfrader.org>
Wed, 30 May 2018 08:16:25 +0000 (10:16 +0200)
modules/debian_org/lib/facter/software.rb

index 595d44a..2a55c18 100644 (file)
@@ -177,3 +177,8 @@ Facter.add("update_grub") do
                FileTest.exist?("/usr/sbin/update-grub")
        end
 end
+Facter.add("haproxy") do
+       setcode do
+               FileTest.exist?("/usr/sbin/haproxy")
+       end
+end