FileTest.exist?("/usr/lib/postgresql/8.3/bin/postgres")
end
end
+Facter.add("postgres84") do
+ setcode do
+ FileTest.exist?("/usr/lib/postgresql/8.4/bin/postgres")
+ end
+end
+Facter.add("postgres90") do
+ setcode do
+ FileTest.exist?("/usr/lib/postgresql/9.0/bin/postgres")
+ end
+end
Facter.add("postgrey") do
setcode do
FileTest.exist?("/usr/sbin/postgrey")
end
Facter.add("syslogversion") do
setcode do
- %x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -b1}.chomp
+ %x{dpkg-query -W -f='${Version}\n' syslog-ng | cut -b1-3}.chomp
end
end
Facter.add("rsyncd") do
FileTest.exist?("/etc/rsyncd.conf")
end
end
+Facter.add("unbound") do
+ setcode do
+ FileTest.exist?("/usr/sbin/unbound") and
+ FileTest.exist?("/var/lib/unbound/root.key")
+ end
+end