/[adm]/puppet/modules/facter/lib/facter/wildcard_sslcert.rb
ViewVC logotype

Contents of /puppet/modules/facter/lib/facter/wildcard_sslcert.rb

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1219 - (show annotations) (download)
Sat Feb 26 13:46:44 2011 UTC (13 years, 11 months ago) by boklm
File size: 317 byte(s)
add fact to check if wildcard certificate is installed
1 Facter.add("wildcard_sslcert") do
2 setcode do
3 begin
4 Facter.domain
5 rescue
6 Facter.loadfacts()
7 end
8 sslfiles = '/etc/ssl/wildcard.' + Facter.value('domain')
9 if File.exist?(sslfiles + '.crt') and File.exist?(sslfiles + '.key') \
10 and File.exist?(sslfiles + '.pem')
11 'yes'
12 else
13 'no'
14 end
15 end
16 end

  ViewVC Help
Powered by ViewVC 1.1.30