Skip to content

Commit

Permalink
Sensu should reconnect to rabbit on failure. Also changed redis-confi…
Browse files Browse the repository at this point in the history
…g to be owned by redis:redis, as advised by voxpupuli/puppet-redis#150
  • Loading branch information
LarsErikP committed Mar 15, 2017
1 parent eb76ac6 commit a492796
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 7 deletions.
15 changes: 8 additions & 7 deletions manifests/sensu/server.pp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,14 @@
$smtp_domain = hiera('profile::sensu::mailer::smtp_domain')

class { '::sensu':
rabbitmq_host => $rabbithost,
rabbitmq_password => $sensurabbitpass,
server => true,
api => true,
use_embedded_ruby => true,
api_bind => '127.0.0.1',
sensu_plugin_provider => 'sensu_gem',
rabbitmq_host => $rabbithost,
rabbitmq_password => $sensurabbitpass,
rabbitmq_reconnect_on_error => true,
server => true,
api => true,
use_embedded_ruby => true,
api_bind => '127.0.0.1',
sensu_plugin_provider => 'sensu_gem',
}

sensu::handler { 'default':
Expand Down
2 changes: 2 additions & 0 deletions manifests/services/redis.pp
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Install and configure standalone redis-server for sensu
class profile::services::redis {
class { '::redis':
config_owner => 'redis',
config_group => 'redis',
}
}

0 comments on commit a492796

Please sign in to comment.