# Edit es config when I use org.elasticsearch.gradle:build-tools

**URL:** <https://discuss.elastic.co/t/edit-es-config-when-i-use-org-elasticsearch-gradle-build-tools/127772>\
**Category:** Elasticsearch\
**Created:** [April 12, 2018, 8:46am UTC](https://discuss.elastic.co/t/edit-es-config-when-i-use-org-elasticsearch-gradle-build-tools/127772 "2018-04-12T08:46:02Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![8a98bb2968a03fe24acf](https://avatars.discourse-cdn.com/v4/letter/8/e8c25b/32.png) [@8a98bb2968a03fe24acf](https://discuss.elastic.co/u/8a98bb2968a03fe24acf)\
**Post date:** [April 12, 2018, 8:46am UTC](https://discuss.elastic.co/t/edit-es-config-when-i-use-org-elasticsearch-gradle-build-tools/127772/1 "2018-04-12T08:46:02Z")

</div>

hi I want to edit `elasticsearch.yml` when I use `org.elasticsearch.gradle:build-tools`  
when I run `gradle clean run`, it makes basic `elasticsearch.yml` like below and run node.

```auto
cluster.name: _run
pidfile: path
path.repo: path
path.shared_data: path
node.attr.testattr: test
repositories.url.allowed_urls: http://snapshot.test*
node.max_local_storage_nodes: 1
http.port: 0
transport.tcp.port: 0
cluster.routing.allocation.disk.watermark.low: 1b
cluster.routing.allocation.disk.watermark.high: 1b

```

I want to set `elasticsearch.yml` that I made.  
how can I do?

---

<div class="post-metadata">

**Author:** ![rjernst](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rjernst/32/6363_2.png) [@rjernst](https://discuss.elastic.co/u/rjernst)\
**Post date:** [April 13, 2018, 2:57pm UTC](https://discuss.elastic.co/t/edit-es-config-when-i-use-org-elasticsearch-gradle-build-tools/127772/2 "2018-04-13T14:57:41Z")

</div>

You can pass in additional settings (which override those in the generated `elasticsearch.yml`) with `-Dtests.es.settingname=foo`. There is no way to override the entire file.

---

<div class="post-metadata">

**Author:** ![8a98bb2968a03fe24acf](https://avatars.discourse-cdn.com/v4/letter/8/e8c25b/32.png) [@8a98bb2968a03fe24acf](https://discuss.elastic.co/u/8a98bb2968a03fe24acf)\
**Post date:** [April 26, 2018, 7:46am UTC](https://discuss.elastic.co/t/edit-es-config-when-i-use-org-elasticsearch-gradle-build-tools/127772/3 "2018-04-26T07:46:37Z")

</div>

thanks a lot!  
and I want to set below option

```auto
./bin/elasticsearch --security.manager.enabled false

```

how can I do?  
`Dtests.es.security.manager.enabled=false` is not worked

---

<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:** [May 24, 2018, 7:46am UTC](https://discuss.elastic.co/t/edit-es-config-when-i-use-org-elasticsearch-gradle-build-tools/127772/4 "2018-05-24T07:46:40Z")

</div>

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