This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

elasticsearch: Add better default network.host

`network.host` is bound to loopback interface to prevent errors when
switching networks. See:

  http://sartak.org/2012/06/roaming-elasticsearch.html

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
  • Loading branch information...
sartak authored and adamv committed Jun 23, 2012
1 parent dea172d commit c6518a2d01f349af0558a57af8b3fad5e05d8307
Showing with 3 additions and 0 deletions.
  1. +3 −0 Library/Formula/elasticsearch.rb
@@ -28,6 +28,9 @@ def install
# 2. Configure paths
s.gsub! /#\s*path\.data\: [^\n]+/, "path.data: #{var}/elasticsearch/"
s.gsub! /#\s*path\.logs\: [^\n]+/, "path.logs: #{var}/log/elasticsearch/"
# 3. Bind to loopback IP for laptops roaming different networks
s.gsub! /#\s*network\.host\: [^\n]+/, "network.host: 127.0.0.1"
end
inreplace "#{bin}/elasticsearch.in.sh" do |s|

0 comments on commit c6518a2

Please sign in to comment.