rackspace-cookbooks / elkstack

Elasticsearch, logstash, and kibana stack
Other
81 stars 54 forks source link

Fetch elasticsearch network host interface a bit more dynamically #167

Closed patcon closed 9 years ago

patcon commented 9 years ago

https://github.com/rackspace-cookbooks/elkstack/blob/master/attributes/elasticsearch.rb#L25

This is currently hardcoded for rackspace, and while a wrapper cookbook can easily fix it, would be nice if it were a bit more dynamic.

Should be able to test for the existence of automatic attr node['cloud_v2']['local_ipv4'] to determine whether to try to use the private network interface eth1, right? (digitalocean doesn't enable this by default)

martinb3 commented 9 years ago

Seems like the same issue as #52.

martinb3 commented 9 years ago

I'd definitely like to see us improve on this.

patcon commented 9 years ago

Ah thanks. Closing as dup