# Elasticsearch problem managing via puppet

**URL:** <https://discuss.elastic.co/t/elasticsearch-problem-managing-via-puppet/208465>\
**Category:** Elasticsearch\
**Created:** [November 19, 2019, 9:22am UTC](https://discuss.elastic.co/t/elasticsearch-problem-managing-via-puppet/208465 "2019-11-19T09:22:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![111242](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/111242/32/57933_2.png) [@111242](https://discuss.elastic.co/u/111242)\
**Post date:** [November 19, 2019, 9:22am UTC](https://discuss.elastic.co/t/elasticsearch-problem-managing-via-puppet/208465/1 "2019-11-19T09:22:56Z")

</div>

Hi  
My elasticsearch is managed via puppet All was ok some time before And all is ok on another instances But on one instance where elasticsearch service stopped to work I got errors when apply puppet config  
Error: Could not set 'mask' on enable: undefined method `mask' for Service[elasticsearch](provider=debian):Puppet::Type::Service::ProviderDebian (file: /etc/puppetlabs/code/environments/production/modules/elasticsearch/manifests/config.pp, line: 105) Error: Could not set 'mask' on enable: undefined method `mask' for Serviceelasticsearch:Puppet::Type::Service::ProviderDebian (file: /etc/puppetlabs/code/environments/production/modules/elasticsearch/manifests/config.pp, line: 105)  
Wrapped exception:  
undefined method `mask' for Service[elasticsearch](provider=debian):Puppet::Type::Service::ProviderDebian Error: /Stage[main]/Elasticsearch::Config/Service[elasticsearch]/enable: change from 'false' to 'mask' failed: Could not set 'mask' on enable: undefined method `mask' for Serviceelasticsearch:Puppet::Type::Service::ProviderDebian (file: /etc/puppetlabs/code/environments/production/modules/elasticsearch/manifests/config.pp, line: 105)  
If I disable puppet and manualy reinstall elasticsearch all is ok Service starts without errors

---

<div class="post-metadata">

**Author:** ![tylerjl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylerjl/32/44965_2.png) [@tylerjl](https://discuss.elastic.co/u/tylerjl)\
**Post date:** [November 19, 2019, 10:54pm UTC](https://discuss.elastic.co/t/elasticsearch-problem-managing-via-puppet/208465/2 "2019-11-19T22:54:18Z")

</div>

Sorry you're having issues, @111242. Do you have an example (or snippet of an example) Puppet manifest that causes this, as well as the Puppet version and OS distribution and version?

---

<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:** [December 17, 2019, 10:54pm UTC](https://discuss.elastic.co/t/elasticsearch-problem-managing-via-puppet/208465/3 "2019-12-17T22:54:26Z")

</div>

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