# Elasticsearch puppet config for Watcher

**URL:** <https://discuss.elastic.co/t/elasticsearch-puppet-config-for-watcher/57734>\
**Category:** Elasticsearch\
**Created:** [August 10, 2016, 6:08pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-config-for-watcher/57734 "2016-08-10T18:08:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![denton64](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@denton64](https://discuss.elastic.co/u/denton64)\
**Post date:** [August 10, 2016, 6:08pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-config-for-watcher/57734/1 "2016-08-10T18:08:13Z")

</div>

Hey guys,

I have been scratching my head for awhile now. I am trying to puppetize my bELK + Watcher stack and am running into this issue. I am using a hash for my elasticsearch config as follows:

```auto
    $config = {
      'network.host' => '0.0.0.0',
      'http.port' => '9200',
      'watcher.action.hipchat.service' => {
        'account' => {
          'notify-monitoring' => {
            'profile' => integration,
            'auth_token' => token,
            'room' => Monitoring-room,
          }
        }
      }
    }

```

I need to add the following to my elasticsearch.yml file:

```auto
watcher.action.hipchat.service:
   account:
     notify-monitoring:
       profile: integration
       auth_token: token
       room: Monitoring-room

```

However, it keeps adding it as so:

```auto
+watcher.action.hipchat.service.account.notify-monitoring.auth_token: token
+watcher.action.hipchat.service.account.notify-monitoring.profile: integration
+watcher.action.hipchat.service.account.notify-monitoring.room: Monitoring-room

```

I am assuming this is due to the elasticsearch.yml.erb template but not sure how to go about changing it so that it formats the Watcher configuration properly.

---

<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:** [August 10, 2016, 9:48pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-config-for-watcher/57734/2 "2016-08-10T21:48:48Z")

</div>

Does that not work? I thought either declaration would work.

---

<div class="post-metadata">

**Author:** ![denton64](https://avatars.discourse-cdn.com/v4/letter/d/258eb7/32.png) [@denton64](https://discuss.elastic.co/u/denton64)\
**Post date:** [August 11, 2016, 6:44pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-config-for-watcher/57734/3 "2016-08-11T18:44:41Z")

</div>

Does not. Gave up and just went to creating a file based off a templated elasticsearch.yml file

---

<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:28pm UTC](https://discuss.elastic.co/t/elasticsearch-puppet-config-for-watcher/57734/4 "2017-07-05T22:28:16Z")

</div>


