Skip to content

Commit

Permalink
[reconnect_on_error] enable transport & redis reconnect_on_error by d…
Browse files Browse the repository at this point in the history
…efault
  • Loading branch information
portertech committed Mar 18, 2015
1 parent b1a79c4 commit 903e0bc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions attributes/default.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@
default.sensu.yum_repo_url = "http://repos.sensuapp.org"
default.sensu.msi_repo_url = "http://repos.sensuapp.org/msi"

# transport
default.sensu.transport.reconnect_on_error = true

# rabbitmq
default.sensu.rabbitmq.host = "localhost"
default.sensu.rabbitmq.port = 5671
Expand All @@ -40,6 +43,7 @@
# redis
default.sensu.redis.host = "localhost"
default.sensu.redis.port = 6379
default.sensu.redis.reconnect_on_error = true

# api
default.sensu.api.host = "localhost"
Expand Down
2 changes: 1 addition & 1 deletion providers/base_config.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
action :create do
definitions = Sensu::Helpers.select_attributes(
node.sensu,
%w[rabbitmq redis api]
%w[transport rabbitmq redis api]
)

data_bag_name = node.sensu.data_bag.name
Expand Down

0 comments on commit 903e0bc

Please sign in to comment.