Closed mcodenie closed 2 months ago
The solution I got were reverted the elasticsearch_component_template.rb and elasticsearch_index_template.rb which works well, using the latest version 9.0.0.
diff --git a/lib/puppet/type/elasticsearch_component_template.rb b/lib/puppet/type/elasticsearch_component_template.rb
index ac963fe..d527e37 100644
--- a/lib/puppet/type/elasticsearch_component_template.rb
+++ b/lib/puppet/type/elasticsearch_component_template.rb
@@ -48,7 +48,7 @@ Puppet::Type.newtype(:elasticsearch_component_template) do
val['template']['settings']['index'] = {} unless val['template']['settings'].key? 'index'
(val['template']['settings'].keys - ['index']).each do |setting|
new_key = if setting.start_with? 'index.'
- setting[6..]
+ setting[6..-1]
else
setting
end
diff --git a/lib/puppet/type/elasticsearch_index_template.rb b/lib/puppet/type/elasticsearch_index_template.rb
index c8b90e4..3a9f3b6 100644
--- a/lib/puppet/type/elasticsearch_index_template.rb
+++ b/lib/puppet/type/elasticsearch_index_template.rb
@@ -54,7 +54,7 @@ Puppet::Type.newtype(:elasticsearch_index_template) do
val['template']['settings']['index'] = {} unless val['template']['settings'].key? 'index'
(val['template']['settings'].keys - ['index']).each do |setting|
new_key = if setting.start_with? 'index.'
- setting[6..]
+ setting[6..-1]
else
setting
end
* Puppet: **puppet-agent-6.28.0-1.el8.x86_64** * Module version: **mod 'puppet-elasticsearch', '9.0.0'**
Puppet 6 has reached EOL and is not supported anymore by recent version of the module (#1191).
Either use a supported version of Puppet, or use an older version of the module that work with the legacy version of Puppet you want to stick with.
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
vagrant provision / puppet agent -t
with the following configurations:
What are you seeing
2nd Run after modifying the _elasticsearch_componenttemplate
What behaviour did you expect instead
Run smoothly or able to execute well the module like these:
Output log
Same as above
Any additional information you'd like to impart
There is no issues on the
mod 'puppet-elasticsearch', '8.1.0'
upon further investigation there was lately changed 2 weeks ago