sous-chefs / elasticsearch

Development repository for the elasticsearch cookbook
https://supermarket.chef.io/cookbooks/elasticsearch
Other
883 stars 602 forks source link

How to specify path.data and path.logs? #202

Closed cynosureabu closed 9 years ago

cynosureabu commented 10 years ago

I could not find a sample code for specifying the data path and logs path. In my .json "elasticsearch": { "version": "1.0.1", "user": "targeting", "cluster_name": "elasticsearch_targeting", "download_url": "https://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-1.0.1.tar.gz", "filename": "elasticsearch-1.0.1.tar.giz", "path:": { "data": "/home/targeting/elasticsearch/data", "logs": "/home/targeting/elasticsearch/logs" } }

But when I check file /usr/local/etc/elasticsearch/elasticsearch.yml

It still points to path.conf: /usr/local/etc/elasticsearch path.data: /usr/local/var/data/elasticsearch path.logs: /usr/local/var/log/elasticsearch

Any idea? Thanks, Chen

cynosureabu commented 10 years ago

I worked around this issue, by adding a "dir" in the config file. After that, the data/logs locations are changed correctly.

martinb3 commented 9 years ago

Hello! It sounds like you were able to get this working. In the meantime, we've re-written the cookbook using libraries that expose resources and providers, so you shouldn't see this problem on the newer version. Hope this helps!