# Elasticsearch puppet module's problem

**URL:** <https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322>\
**Category:** Elasticsearch\
**Created:** [April 20, 2015, 1:53pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322 "2015-04-20T13:53:40Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Zemlyanoy](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sergey\_Zemlyanoy](https://discuss.elastic.co/u/Sergey_Zemlyanoy)\
**Post date:** [April 20, 2015, 1:53pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/1 "2015-04-20T13:53:40Z")

</div>

Dear support,

I'm trying to setup Es using this module -

> <https://github.com/elastic/puppet-elasticsearch/blob/master/README.md>

  
For sake of testing I spin up a new VM and try to apply default module on it

node somenode{  
include elasticsearch  
}

It ends up with rpm package installed but absent service

Info: Applying configuration version '1429537010'  
Notice: /Stage[main]/Elasticsearch::Package/Package[elasticsearch]/ensure:  
created  
Info: Computing checksum on file /etc/init.d/elasticsearch  
Info: FileBucket got a duplicate file {md5}cbd974e711b257c941dddca3aef79e46  
Info: /Stage[main]/Elasticsearch::Config/File[/etc/init.d/elasticsearch]:  
Filebucketed /etc/init.d/elasticsearch to puppet with sum  
cbd974e711b257c941dddca3aef79e46  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/etc/init.d/elasticsearch]/ensure:  
removed  
Info: Computing checksum on file  
/usr/lib/systemd/system/elasticsearch.service  
Info: FileBucket got a duplicate file {md5}649153421e86836314671510160c3798  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/lib/systemd/system/elasticsearch.service]/ensure:  
removed  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/spatial4j-0.4.1.jar]/owner:  
owner changed 'root' to 'elasticsearch'  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/spatial4j-0.4.1.jar]/group:  
group changed 'root' to 'elasticsearch'  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/asm-4.1.jar]/owner:  
owner changed 'root' to 'elasticsearch'  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/asm-4.1.jar]/group:  
group changed 'root' to 'elasticsearch'  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/lucene-join-4.10.4.jar]/owner:  
owner changed 'root' to 'elasticsearch'  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/lucene-join-4.10.4.jar]/group:  
group changed 'root' to 'elasticsearch'

...

Info: Computing checksum on file /etc/elasticsearch/elasticsearch.yml  
Info: FileBucket got a duplicate file {md5}08a09998560b7b786eca1e594b004ddc  
Info:  
/Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/elasticsearch.yml]:  
Filebucketed /etc/elasticsearch/elasticsearch.yml to puppet with sum  
08a09998560b7b786eca1e594b004ddc  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/elasticsearch.yml]/ensure:  
removed  
Info: Computing checksum on file /etc/elasticsearch/logging.yml  
Info: FileBucket got a duplicate file {md5}c0d21de98dc9a6015943dc47f2aa18f5  
Info:  
/Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/logging.yml]:  
Filebucketed /etc/elasticsearch/logging.yml to puppet with sum  
c0d21de98dc9a6015943dc47f2aa18f5  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/etc/elasticsearch/logging.yml]/ensure:  
removed  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/jna-4.1.0.jar]/owner:  
owner changed 'root' to 'elasticsearch'  
Notice:  
/Stage[main]/Elasticsearch::Config/File[/usr/share/elasticsearch/lib/jna-4.1.0.jar]/group:  
group changed 'root' to 'elasticsearch'  
Notice: Finished catalog run in 43.57 seconds

Also I noticed that module doesn't handle repository in default state, so I  
need to include variables  
elasticsearch::manage\_repo: true  
elasticsearch::repo\_version: "1.5"

So what am I doing wrong ?

Regards  
Sergey

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/d6e9bd4d-fbb1-44e7-82c1-f44705c8d61e%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/d6e9bd4d-fbb1-44e7-82c1-f44705c8d61e%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sergey\_Zemlyanoy](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sergey\_Zemlyanoy](https://discuss.elastic.co/u/Sergey_Zemlyanoy)\
**Post date:** [April 22, 2015, 6:58am UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/2 "2015-04-22T06:58:11Z")

</div>

Hi,

So any advice what should I pass to configure service? It seems configs are  
removed by module itself which is odd.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9bd5667b-e2fc-4d77-94d2-2dd142a34b4c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9bd5667b-e2fc-4d77-94d2-2dd142a34b4c%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sergey\_Zemlyanoy](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sergey\_Zemlyanoy](https://discuss.elastic.co/u/Sergey_Zemlyanoy)\
**Post date:** [April 22, 2015, 7:42am UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/3 "2015-04-22T07:42:43Z")

</div>

Update

When I commented this part of config.pp the service and configs appeared on  
host

/\* # Removal of files that are provided with the package which we don't  
use  
file { '/etc/init.d/elasticsearch':  
ensure =\> 'absent'  
}  
file { '/usr/lib/systemd/system/elasticsearch.service':  
ensure =\> 'absent'  
}

```
file { "${elasticsearch::params::defaults_location}/elasticsearch":
  ensure => 'absent'
}

file { '/etc/elasticsearch/elasticsearch.yml':
  ensure => 'absent'
}
file { '/etc/elasticsearch/logging.yml':
  ensure => 'absent'
}

```

\*/

I'm a bit confused how this should work at all...

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/81473097-7423-472f-8438-cf9c76e4e813%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/81473097-7423-472f-8438-cf9c76e4e813%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 23, 2015, 1:27am UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/4 "2015-04-23T01:27:58Z")

</div>

The module works with the notion of an instance  
[https://github.com/elastic/puppet-elasticsearch/blob/master/README.md#instances](https://github.com/elastic/puppet-elasticsearch/blob/master/README.md#instances)  
and when you setup an instance it creates  
/etc/init.d/elasticsearch-$instancename

On 22 April 2015 at 17:42, Sergey Zemlyanoy [s.zemlyanoy@gmail.com](mailto:s.zemlyanoy@gmail.com) wrote:

> Update
> 
> When I commented this part of config.pp the service and configs appeared  
> on host
> 
> /\* # Removal of files that are provided with the package which we don't  
> use  
> file { '/etc/init.d/elasticsearch':  
> ensure =\> 'absent'  
> }  
> file { '/usr/lib/systemd/system/elasticsearch.service':  
> ensure =\> 'absent'  
> }
> 
> ```
> file { "${elasticsearch::params::defaults_location}/elasticsearch":
> ensure => 'absent'
> }
> 
> file { '/etc/elasticsearch/elasticsearch.yml':
> ensure => 'absent'
> }
> file { '/etc/elasticsearch/logging.yml':
> ensure => 'absent'
> }
> 
> ```
> 
> \*/
> 
> I'm a bit confused how this should work at all...
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/81473097-7423-472f-8438-cf9c76e4e813%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/81473097-7423-472f-8438-cf9c76e4e813%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/81473097-7423-472f-8438-cf9c76e4e813%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/81473097-7423-472f-8438-cf9c76e4e813%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9ZmtZRNtLoiTL7j3td0%2BkEHGM7Pvk%3Da-MSjPH8ffoobw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X9ZmtZRNtLoiTL7j3td0%2BkEHGM7Pvk%3Da-MSjPH8ffoobw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sergey\_Zemlyanoy](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sergey\_Zemlyanoy](https://discuss.elastic.co/u/Sergey_Zemlyanoy)\
**Post date:** [April 28, 2015, 12:05pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/5 "2015-04-28T12:05:25Z")

</div>

Thanks for advice! It works

BTW as I see there is no purge handling for instance, right? So it's not  
enough just to remove instance name from hiera, I need to pass ensure =\>  
absent explicitly

Thanks  
Sergey

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/9b2e9fa4-b85b-40df-a9a8-a195c5dcb2eb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/9b2e9fa4-b85b-40df-a9a8-a195c5dcb2eb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sergey\_Zemlyanoy](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sergey\_Zemlyanoy](https://discuss.elastic.co/u/Sergey_Zemlyanoy)\
**Post date:** [April 28, 2015, 2:09pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/6 "2015-04-28T14:09:20Z")

</div>

And guys,

how can I increase heap size using this module? I don't see how to control  
parameter ES\_HEAP\_SIZE located in init script rather then distribute full  
init script by puppet

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/76ebd44a-441b-45d0-afaf-51347d9ee7bc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76ebd44a-441b-45d0-afaf-51347d9ee7bc%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [April 28, 2015, 9:33pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/7 "2015-04-28T21:33:17Z")

</div>

You don't want to set that in the init script, use the init\_defaults hash  
instead.

On 29 April 2015 at 00:09, Sergey Zemlyanoy [s.zemlyanoy@gmail.com](mailto:s.zemlyanoy@gmail.com) wrote:

> And guys,
> 
> how can I increase heap size using this module? I don't see how to  
> control parameter ES\_HEAP\_SIZE located in init script rather then  
> distribute full init script by puppet
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/76ebd44a-441b-45d0-afaf-51347d9ee7bc%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/76ebd44a-441b-45d0-afaf-51347d9ee7bc%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/76ebd44a-441b-45d0-afaf-51347d9ee7bc%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/76ebd44a-441b-45d0-afaf-51347d9ee7bc%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .
> 
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8xNNAO%3D-83AiCpy%3D61eO96Y4faP6oTeXwO56UEZTt2ug%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAEYi1X8xNNAO%3D-83AiCpy%3D61eO96Y4faP6oTeXwO56UEZTt2ug%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Sergey\_Zemlyanoy](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@Sergey\_Zemlyanoy](https://discuss.elastic.co/u/Sergey_Zemlyanoy)\
**Post date:** [April 29, 2015, 8:54am UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/8 "2015-04-29T08:54:32Z")

</div>

Yep that works for me fine! Thanks

What about instance purge? It seems retain non managed instances on server

Sergey

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6faf253a-8bce-477e-8692-439071bcbf12%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6faf253a-8bce-477e-8692-439071bcbf12%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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 6, 2017, 12:17am UTC](https://discuss.elastic.co/t/elasticsearch-puppet-modules-problem/23322/9 "2017-07-06T00:17:09Z")

</div>


