Permalink
Browse files

Ditto for ES

  • Loading branch information...
1 parent 43565ae commit da3aa021639877967413cd94c2131f012e08b8fd @michaelklishin michaelklishin committed Oct 3, 2012
@@ -1,3 +1,6 @@
default[:elasticsearch] = {
- :version => "0.19.10"
+ :version => "0.19.10",
+ :service => {
+ :enabled => false
+ }
}
@@ -57,8 +57,11 @@
service "elasticsearch" do
supports :restart => true, :status => true
- # intentionally disabled on boot to save on RAM available to projects,
- # supposed to be started manually by projects that need it. MK.
- action [:disable]
+
+ if node.elasticsearch.service.enabled
+ action [:enable, :start]
+ else
+ action [:disable, :start]
+ end
end
end

0 comments on commit da3aa02

Please sign in to comment.