# Puppet - Elasticsearch prevent restart

**URL:** <https://discuss.elastic.co/t/puppet-elasticsearch-prevent-restart/41667>\
**Category:** Elasticsearch\
**Created:** [February 12, 2016, 10:24pm UTC](https://discuss.elastic.co/t/puppet-elasticsearch-prevent-restart/41667 "2016-02-12T22:24:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![megaforce1020](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@megaforce1020](https://discuss.elastic.co/u/megaforce1020)\
**Post date:** [February 12, 2016, 10:24pm UTC](https://discuss.elastic.co/t/puppet-elasticsearch-prevent-restart/41667/1 "2016-02-12T22:24:49Z")

</div>

So whenever I do a puppet apply to configure elasticsearch, it causes the elasticsearch service to either close if I have the option 'Status =\> disabled' or it will cause it to restart if I comment the status option out. I was wondering if there was some way for puppet to apply changes to elasticsearch without causing the service to restart so that I can manually restart the application.

---

<div class="post-metadata">

**Author:** ![msimos](https://avatars.discourse-cdn.com/v4/letter/m/bb73d2/32.png) [@msimos](https://discuss.elastic.co/u/msimos)\
**Post date:** [February 12, 2016, 10:54pm UTC](https://discuss.elastic.co/t/puppet-elasticsearch-prevent-restart/41667/2 "2016-02-12T22:54:23Z")

</div>

Hi,

There is a `restart_on_change` parameter which you can set to false.

> <https://github.com/elastic/puppet-elasticsearch/blob/e3a1f536c0b20af31428b4fbc0f23ee65bc75c8c/manifests/init.pp#L52>

---

<div class="post-metadata">

**Author:** ![megaforce1020](https://avatars.discourse-cdn.com/v4/letter/m/ecae2f/32.png) [@megaforce1020](https://discuss.elastic.co/u/megaforce1020)\
**Post date:** [February 16, 2016, 7:06pm UTC](https://discuss.elastic.co/t/puppet-elasticsearch-prevent-restart/41667/3 "2016-02-16T19:06:22Z")

</div>

Hey, that is super helpful! Thanks, I'll try that.

---

<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:** [July 5, 2017, 11:15pm UTC](https://discuss.elastic.co/t/puppet-elasticsearch-prevent-restart/41667/4 "2017-07-05T23:15:56Z")

</div>


