# Puppet problems with SHIELD

**URL:** https://discuss.elastic.co/t/puppet-problems-with-shield/62494
**Category:** Elasticsearch
**Created:** [October 7, 2016, 1:46pm UTC](https://discuss.elastic.co/t/puppet-problems-with-shield/62494 "2016-10-07T13:46:11Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![John\_Morrison](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_morrison/32/107691_2.png) [@John\_Morrison](https://discuss.elastic.co/u/John_Morrison)
#### Post date: [October 7, 2016, 1:46pm UTC](https://discuss.elastic.co/t/puppet-problems-with-shield/62494/1 "2016-10-07T13:46:11Z")

</div>

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](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](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](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](http://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](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](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](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](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](http://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](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

---

<div class="post-metadata">

### Author: ![tanguy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tanguy/32/6030_2.png) [@tanguy](https://discuss.elastic.co/u/tanguy)
#### Post date: [October 7, 2016, 2:17pm UTC](https://discuss.elastic.co/t/puppet-problems-with-shield/62494/2 "2016-10-07T14:17:01Z")

</div>

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': }

```

?

---

<div class="post-metadata">

### Author: ![John\_Morrison](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_morrison/32/107691_2.png) [@John\_Morrison](https://discuss.elastic.co/u/John_Morrison)
#### Post date: [October 10, 2016, 8:45am UTC](https://discuss.elastic.co/t/puppet-problems-with-shield/62494/3 "2016-10-10T08:45:44Z")

</div>

Hi!! Thanks for that! Was it that obvious 🙂

Didn't you lead the course in Stockholm?

Cheers,

John

---

<div class="post-metadata">

### Author: ![John\_Morrison](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/john_morrison/32/107691_2.png) [@John\_Morrison](https://discuss.elastic.co/u/John_Morrison)
#### Post date: [October 10, 2016, 8:56am UTC](https://discuss.elastic.co/t/puppet-problems-with-shield/62494/4 "2016-10-10T08:56:32Z")

</div>

using the latest version of ES.

---

<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 5, 2017, 10:13pm UTC](https://discuss.elastic.co/t/puppet-problems-with-shield/62494/5 "2017-07-05T22:13:40Z")

</div>


