From 666033f76e7e6f95d053f9b3e999ae7a0c472e8a Mon Sep 17 00:00:00 2001 From: Peter Palfrader Date: Tue, 25 Aug 2015 19:22:31 +0200 Subject: [PATCH] Add a factor to load /srv/sso.debian.org/debsso/data/spkac_ca/ca.crl --- modules/debian-org/lib/facter/debsso.rb | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 modules/debian-org/lib/facter/debsso.rb 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: -- 2.20.1