Permalink
Browse files

Ditto for RabbitMQ

  • Loading branch information...
1 parent 014af12 commit 9caa5f30a34c451ed75ab5533d23b6c3a5da7e97 @michaelklishin michaelklishin committed Oct 3, 2012
Showing with 9 additions and 2 deletions.
  1. +3 −0 ci_environment/rabbitmq/attributes/default.rb
  2. +6 −2 ci_environment/rabbitmq/recipes/default.rb
@@ -6,3 +6,6 @@
default[:rabbitmq][:mnesiadir] = nil
default[:rabbitmq][:high_memory_watermark] = 0.04
+
+default[:rabbitmq][:service][:enabled] = false
+
@@ -58,6 +58,10 @@
service "rabbitmq-server" do
supports :restart => true, :status => true, :reload => true
- # intentionally disabled on boot. MK.
- action [:disable, :start]
+
+ if node.rabbitmq.service.enabled
+ action [:enable, :start]
+ else
+ action [:disable, :start]
+ end
end

0 comments on commit 9caa5f3

Please sign in to comment.