From 76906aba0f9f9c77dff0b87b0a6a96644e4c680e Mon Sep 17 00:00:00 2001 From: Justin Lambert Date: Mon, 22 Dec 2014 14:17:40 -0700 Subject: [PATCH] fix for future parser --- manifests/rabbitmq/config.pp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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,