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

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

Parent Directory Parent Directory | Revision Log Revision Log


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

  ViewVC Help
Powered by ViewVC 1.1.30