Parent Directory
|
Revision Log
add fact to check if wildcard certificate is installed
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 | 'yes' | ||
12 | else | ||
13 | 'no' | ||
14 | end | ||
15 | end | ||
16 | end |
ViewVC Help | |
Powered by ViewVC 1.1.30 |