diff --git a/manifests/rabbitmq/config.pp b/manifests/rabbitmq/config.pp index 0f5f25b9ab..88a47f0b5d 100644 --- a/manifests/rabbitmq/config.pp +++ b/manifests/rabbitmq/config.pp @@ -23,7 +23,7 @@ require => Package['sensu'], } - if $sensu::rabbitmq_ssl_cert_chain =~ /^puppet:\/\// { + if $sensu::rabbitmq_ssl_cert_chain and $sensu::rabbitmq_ssl_cert_chain =~ /^puppet:\/\// { file { '/etc/sensu/ssl/cert.pem': ensure => present, source => $sensu::rabbitmq_ssl_cert_chain, @@ -39,7 +39,7 @@ $ssl_cert_chain = $sensu::rabbitmq_ssl_cert_chain } - if $sensu::rabbitmq_ssl_private_key =~ /^puppet:\/\// { + if $sensu::rabbitmq_ssl_private_key and $sensu::rabbitmq_ssl_private_key =~ /^puppet:\/\// { file { '/etc/sensu/ssl/key.pem': ensure => present, source => $sensu::rabbitmq_ssl_private_key,