Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix breakage when ssl_cert/ssl_ca/ssl_key options are unset and the f… #62

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions manifests/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
$ssl_ca = $logstashforwarder::ssl_ca
$ssl_key = $logstashforwarder::ssl_key

if $ssl_cert =~ /^puppet\:\/\// {
if $ssl_cert and $ssl_cert =~ /^puppet\:\/\// {

$filenameArray_ssl_cert = split($ssl_cert, '/')
$basefilename_ssl_cert = $filenameArray_ssl_cert[-1]
Expand All @@ -82,7 +82,7 @@
$opt_ssl_cert = $ssl_cert
}

if $ssl_ca =~ /^puppet\:\/\// {
if $ssl_ca and $ssl_ca =~ /^puppet\:\/\// {

$filenameArray_ssl_ca = split($ssl_ca, '/')
$basefilename_ssl_ca = $filenameArray_ssl_ca[-1]
Expand All @@ -97,7 +97,7 @@
$opt_ssl_ca = $ssl_ca
}

if $ssl_key =~ /^puppet\:\/\// {
if $ssl_key and $ssl_key =~ /^puppet\:\/\// {

$filenameArray_ssl_key = split($ssl_key, '/')
$basefilename_ssl_key = $filenameArray_ssl_key[-1]
Expand Down