You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've created a hackish, drop-in replacement for elasticsearch_keystore provider: https://github.com/psychonaut/puppet-elasticsearch/blob/keystore/lib/puppet/provider/elasticsearch_keystore/ruby.rb - it works but to be honest, I don't like this approach: since in new module there's only one keystore there's no point of creating resource for keystore. Moreover, even in the old instance version, it didn't check the value of the secret, it only checked if a secret with this name exists.
The new approach should be built around secrets, not keystores. So instead of
elasticsearch_keystore { 'whatever': # it's no longer relevant what you put here since there's only one keystore
..
settings => {secret1_key => secret1_value, secret2_key => secret2_value},
}
it should be
elasticsearch_secret { 'secret_key':
ensure => absent|present
value => secret_value,
}
Affected Puppet, Ruby, OS and module versions/distributions
How to reproduce (e.g Puppet code you use)
What are you seeing
Could not evaluate: Execution of '/usr/share/elasticsearch/bin/elasticsearch-keystore create' returned 1:
What behaviour did you expect instead
Successful execution of elasticsearch_keystore resource
Output log
Any additional information you'd like to impart
The resource fails because of legacy instance configuration in this definition,
puppet-elasticsearch/lib/puppet/provider/elasticsearch_keystore/ruby.rb
Line 30 in 7ef7983
The text was updated successfully, but these errors were encountered: