Skip to content

Commit

Permalink
Merge pull request #292 from jlambert121/future_parser
Browse files Browse the repository at this point in the history
fix for future parser
  • Loading branch information
jamtur01 committed Dec 22, 2014
2 parents 08e36f0 + 76906ab commit a897c3c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions manifests/rabbitmq/config.pp
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit a897c3c

Please sign in to comment.