From: Peter Palfrader Date: Tue, 25 Aug 2015 17:22:31 +0000 (+0200) Subject: Add a factor to load /srv/sso.debian.org/debsso/data/spkac_ca/ca.crl X-Git-Url: https://git.adam-barratt.org.uk/?a=commitdiff_plain;h=666033f76e7e6f95d053f9b3e999ae7a0c472e8a;p=mirror%2Fdsa-puppet.git Add a factor to load /srv/sso.debian.org/debsso/data/spkac_ca/ca.crl --- diff --git a/modules/debian-org/lib/facter/debsso.rb b/modules/debian-org/lib/facter/debsso.rb new file mode 100644 index 000000000..21c4f755e --- /dev/null +++ b/modules/debian-org/lib/facter/debsso.rb @@ -0,0 +1,19 @@ +begin + require 'etc' + + Facter.add("debsso_skac_crl") do + setcode do + crl = nil + crlfile = '/srv/sso.debian.org/debsso/data/spkac_ca/ca.crl' + if FileTest.exist?(crlfile) + crl = File.open(crlfile).read + end + crl + end + end + +rescue Exception => e +end +# vim:set et: +# vim:set ts=4: +# vim:set shiftwidth=4: