Puppet problems with SHIELD


(John) #1

I've been fighting puppet for a few days now, and getting the shield to install without doing it by hand has become painstaking.

I'm using this:

elasticsearch::instance { 'es-mn1': }

Elasticsearch::Plugin { instances => ['es-mn1'], }
elasticsearch::plugin { 'elasticsearch/license': }
elasticsearch::plugin { 'elasticsearch/shield': }

Error: Could not set 'present' on ensure: Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/shield' returned 74: -> Installing elasticsearch/shield...
Trying https://github.com/elasticsearch/shield/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information> at 168:/etc/puppet_envs/wwwpuppet/modules/elasticsearch/manifests/plugin.pp
Error: Could not set 'present' on ensure: Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/shield' returned 74: -> Installing elasticsearch/shield...
Trying https://github.com/elasticsearch/shield/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information> at 168:/etc/puppet_envs/wwwpuppet/modules/elasticsearch/manifests/plugin.pp
Wrapped exception:
Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/shield' returned 74: -> Installing elasticsearch/shield...
Trying https://github.com/elasticsearch/shield/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information>
Error: /Stage[main]/Main/Node[uuc-logmn001-t.its.uu.se]/Elasticsearch::Plugin[elasticsearch/shield]/Elasticsearch_plugin[elasticsearch/shield]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/shield' returned 74: -> Installing elasticsearch/shield...
Trying https://github.com/elasticsearch/shield/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information> at 168:/etc/puppet_envs/wwwpuppet/modules/elasticsearch/manifests/plugin.pp
Error: Could not set 'present' on ensure: Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/license' returned 74: -> Installing elasticsearch/license...
Trying https://github.com/elasticsearch/license/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information> at 168:/etc/puppet_envs/wwwpuppet/modules/elasticsearch/manifests/plugin.pp
Error: Could not set 'present' on ensure: Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/license' returned 74: -> Installing elasticsearch/license...
Trying https://github.com/elasticsearch/license/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information> at 168:/etc/puppet_envs/wwwpuppet/modules/elasticsearch/manifests/plugin.pp
Wrapped exception:
Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/license' returned 74: -> Installing elasticsearch/license...
Trying https://github.com/elasticsearch/license/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information>
Error: /Stage[main]/Main/Node[uuc-logmn001-t.its.uu.se]/Elasticsearch::Plugin[elasticsearch/license]/Elasticsearch_plugin[elasticsearch/license]/ensure: change from absent to present failed: Could not set 'present' on ensure: Failed to install plugin. Received error: #<Puppet::ExecutionFailure: Execution of '/usr/share/elasticsearch/bin/plugin -Des.path.conf=/usr/share/elasticsearch install --batch elasticsearch/license' returned 74: -> Installing elasticsearch/license...
Trying https://github.com/elasticsearch/license/archive/master.zip ...
ERROR: failed to download out of all possible locations..., use --verbose to get detailed information> at 168:/etc/puppet_envs/wwwpuppet/modules/elasticsearch/manifests/plugin.pp


(Tanguy) #2

Hi,

Which version of Elasticsearch are you using? I don't know much about the Puppet module, but did you try with

elasticsearch::plugin { 'license': }
elasticsearch::plugin { 'shield': }

?


(John) #3

Hi!! Thanks for that! Was it that obvious :slight_smile:

Didn't you lead the course in Stockholm?

Cheers,

John


(John) #4

using the latest version of ES.


(system) #5