# Question on plugin install and configdir

**URL:** https://discuss.elastic.co/t/question-on-plugin-install-and-configdir/32177
**Category:** Elasticsearch
**Created:** [October 14, 2015, 1:25pm UTC](https://discuss.elastic.co/t/question-on-plugin-install-and-configdir/32177 "2015-10-14T13:25:14Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![bilsch](https://avatars.discourse-cdn.com/v4/letter/b/5f8ce5/32.png) [@bilsch](https://discuss.elastic.co/u/bilsch)
#### Post date: [October 14, 2015, 1:25pm UTC](https://discuss.elastic.co/t/question-on-plugin-install-and-configdir/32177/1 "2015-10-14T13:25:14Z")

</div>

I am working on an es 1.7 install and am using the puppet module to define instances. When I run the plugin install for shield the config goes to /etc/elasticsearch/shield however the instance is /etc/elasticsearch/foo.

I am only able to make things work by putting a sym-link from /etc/elasticsearch/foo/shield to /etc/elasticsearch/shield. I have tried overriding the config settings but not sure if I am doing it right.

I feel like there are a few problems here:

1. I'm telling the plugin to apply for a named instance foo but the config does not drop there. Reading [https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/plugins/PluginManager.java#L263-L273](https://github.com/elastic/elasticsearch/blob/master/core/src/main/java/org/elasticsearch/plugins/PluginManager.java#L263-L273) implies to me the manager at least thinks about it

2. Are these config settings right to override the location of the configs:

Section from hiera:

```
elasticsearch::plugins:
  "elasticsearch/license/latest":
    instances:
      - foo
  "elasticsearch/shield/latest":
    instances:
      - foo
  "elasticsearch/watcher/latest":
    instances:
      - foo
  "elasticsearch/marvel/latest":
    instances:
      - foo

```

Host is rhel 7. elasticsearch version is 1.7.2, jvm is openjdk 1.8

---

<div class="post-metadata">

### Author: ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)
#### Post date: [October 14, 2015, 9:58pm UTC](https://discuss.elastic.co/t/question-on-plugin-install-and-configdir/32177/2 "2015-10-14T21:58:44Z")

</div>

This is a known problem and I think the next iteration of our module handles this better.

@electrical can you comment further please 🙂

---

<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, 11:44pm UTC](https://discuss.elastic.co/t/question-on-plugin-install-and-configdir/32177/3 "2017-07-05T23:44:46Z")

</div>


