# Is it okay to remove the config directory, when it comes to cluster setup?

**URL:** <https://discuss.elastic.co/t/is-it-okay-to-remove-the-config-directory-when-it-comes-to-cluster-setup/87272>\
**Category:** Elasticsearch\
**Created:** [May 26, 2017, 3:13pm UTC](https://discuss.elastic.co/t/is-it-okay-to-remove-the-config-directory-when-it-comes-to-cluster-setup/87272 "2017-05-26T15:13:09Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![vijayramachandran](https://avatars.discourse-cdn.com/v4/letter/v/858c86/32.png) [@vijayramachandran](https://discuss.elastic.co/u/vijayramachandran)\
**Post date:** [May 26, 2017, 3:13pm UTC](https://discuss.elastic.co/t/is-it-okay-to-remove-the-config-directory-when-it-comes-to-cluster-setup/87272/1 "2017-05-26T15:13:09Z")

</div>

Hello there!

We have setup elasticsearch using ansible using the archive (.tgz) file.

The setup goes like this,

/opt/elastic/application/elasticsearch-5.2.2/node1/ - Master node  
/opt/elastic/application/elasticsearch-5.2.2/node2/ - Data node

Under these locations, we have files, directories like below,

elasticsearch.yml  
instances.yml  
jvm.options  
log4j2.properties  
scripts/  
security/  
x-pack/

Under this location, /opt/elastic/application/elasticsearch-5.2.2/, we have the below files, directories,

bin/  
config/  
data/  
lib/  
LICENSE.txt  
modules/  
node1/  
node2/  
NOTICE.txt  
plugins/  
README.textile  
run/

Is this the right approach to have the setup this way? Wouldn't the cluster work properly, if we place config files, directories (elasticsearch.yml, instances.yml, jvm.options, log4j2.properties) under config/ directory for each node1/ and node2/?

P.S: if this okay, what would be ES\_HOME then?

Thanks,

Vijay

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [June 23, 2017, 3:13pm UTC](https://discuss.elastic.co/t/is-it-okay-to-remove-the-config-directory-when-it-comes-to-cluster-setup/87272/2 "2017-06-23T15:13:15Z")

</div>

Closed on June 23, 2017, 3:13pm UTC

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
