Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ditto for RabbitMQ

  • Loading branch information...
commit 9caa5f30a34c451ed75ab5533d23b6c3a5da7e97 1 parent 014af12
@michaelklishin michaelklishin authored
View
3  ci_environment/rabbitmq/attributes/default.rb
@@ -6,3 +6,6 @@
default[:rabbitmq][:mnesiadir] = nil
default[:rabbitmq][:high_memory_watermark] = 0.04
+
+default[:rabbitmq][:service][:enabled] = false
+
View
8 ci_environment/rabbitmq/recipes/default.rb
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.