From: Peter Palfrader Date: Sat, 5 Mar 2011 10:32:33 +0000 (+0100) Subject: A facter for unbound X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=7183fc8d4f562955d8f69ffd571dde37735f4cfa;p=dsa-puppet.git A facter for unbound --- diff --git a/modules/debian-org/lib/facter/software.rb b/modules/debian-org/lib/facter/software.rb index 3a0fefcd..237f9fa7 100644 --- a/modules/debian-org/lib/facter/software.rb +++ b/modules/debian-org/lib/facter/software.rb @@ -77,3 +77,9 @@ 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