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"
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'
}
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'
}
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
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
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
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.