From: Julien Cristau Date: Sun, 19 Mar 2017 11:28:13 +0000 (+0100) Subject: Update postgres fact X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=7c3fe4776228ba99546a7d94652febe6c207231d;p=mirror%2Fdsa-puppet.git Update postgres fact --- diff --git a/modules/debian_org/lib/facter/software.rb b/modules/debian_org/lib/facter/software.rb index 5c079129b..47fa46a81 100644 --- a/modules/debian_org/lib/facter/software.rb +++ b/modules/debian_org/lib/facter/software.rb @@ -46,12 +46,9 @@ Facter.add("postfix") do end Facter.add("postgres") do setcode do - pg = (FileTest.exist?("/usr/lib/postgresql/8.1/bin/postgres") or - FileTest.exist?("/usr/lib/postgresql/8.3/bin/postgres") or - FileTest.exist?("/usr/lib/postgresql/8.4/bin/postgres") or - FileTest.exist?("/usr/lib/postgresql/9.0/bin/postgres") or - FileTest.exist?("/usr/lib/postgresql/9.1/bin/postgres") or - FileTest.exist?("/usr/lib/postgresql/9.2/bin/postgres")) + pg = (FileTest.exist?("/usr/lib/postgresql/9.1/bin/postgres") or + FileTest.exist?("/usr/lib/postgresql/9.4/bin/postgres") or + FileTest.exist?("/usr/lib/postgresql/9.6/bin/postgres")) if pg true else