/[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 1249 - (show annotations) (download)
Thu Mar 3 00:44:42 2011 UTC (13 years, 1 month ago) by boklm
File size: 321 byte(s)
return a string (as facter converts booleans to string)
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 'true'
12 else
13 'false'
14 end
15 end
16 end

  ViewVC Help
Powered by ViewVC 1.1.30