Check for CA file existence

This commit is contained in:
Victor Cabezas 2020-04-16 18:19:37 +02:00
parent 1433c5596d
commit 38e4b25e29

View File

@ -72,6 +72,9 @@ module PuppetX
method: :simple_tls,
tls_options: { ca_file: ca_file }
}
if File.file?(ca_file)
conf[:encryption][:tls_options] = { ca_file: ca_file }
end
end
conf