# Problem defining Instance name in Puppet Enterprise

**URL:** <https://discuss.elastic.co/t/problem-defining-instance-name-in-puppet-enterprise/83077>\
**Category:** Elasticsearch\
**Created:** [April 20, 2017, 3:29pm UTC](https://discuss.elastic.co/t/problem-defining-instance-name-in-puppet-enterprise/83077 "2017-04-20T15:29:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Geezer](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@Geezer](https://discuss.elastic.co/u/Geezer)\
**Post date:** [April 20, 2017, 3:29pm UTC](https://discuss.elastic.co/t/problem-defining-instance-name-in-puppet-enterprise/83077/1 "2017-04-20T15:29:46Z")

</div>

Hello,

I am trying to use the Puppet module elastic/elasticsearch to deploy Elasticsearch but am unable to define the instance name when using the dashboard.

The documentation only references config files, not how to use the dashboard, and gives this as an example of the syntax:

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

I can manually add this to my site.pp and it will install, but I cannot get the dashboard to accept the instance name. Whatever I try, I get an error similar to this:

Error: Could not retrieve catalog from remote server: Error 500 on SERVER: Server Error: Evaluation Error: Error while evaluating a Resource Statement, Evaluation Error: Error while evaluating a Function Call, "{ 'es-01': }" is not a Hash. It looks to be a String at /etc/puppetlabs/code/environments/production/modules/elasticsearch/manifests/init.pp:536:5 on node   
Warning: Not using cache on failed catalog

It wants a hash and I've tried various formats in the dashboard, but none work e.g.

es-01  
'es-01'  
{'es-01'}  
{'es-01':}  
{instance =\> es-01}  
{instance =\> 'es-01'}

Can anyone tell me what I'm missing please?

Thank you

---

<div class="post-metadata">

**Author:** ![tylerjl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylerjl/32/44965_2.png) [@tylerjl](https://discuss.elastic.co/u/tylerjl)\
**Post date:** [April 21, 2017, 2:22pm UTC](https://discuss.elastic.co/t/problem-defining-instance-name-in-puppet-enterprise/83077/2 "2017-04-21T14:22:19Z")

</div>

I haven't used Puppet Enterprise before, but the question of how to define parameters as hashes seems to be a [common](https://groups.google.com/forum/#!topic/puppet-users/j8Jk6SU3uzs) [problem](https://ask.puppet.com/question/19106/how-do-you-set-class-parameter-values-to-multidimensional-arrays-in-pe/). Based upon what I've been reading, it seems that hashes need to be either passed in just in curly braces or possibly backticks (I've read conflicting reports).

Thus it seems like one of these might work:

```
{ 'es-01' => { } }

```

or:

```
`{ 'es-01' => { } }`
```

---

<div class="post-metadata">

**Author:** ![Geezer](https://avatars.discourse-cdn.com/v4/letter/g/49beb7/32.png) [@Geezer](https://discuss.elastic.co/u/Geezer)\
**Post date:** [April 21, 2017, 9:33pm UTC](https://discuss.elastic.co/t/problem-defining-instance-name-in-puppet-enterprise/83077/3 "2017-04-21T21:33:39Z")

</div>

Hello,

Thanks for the suggestion but still no luck.

I'll investigate further and post the solution if I find it.

---

<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:** [May 19, 2017, 9:47pm UTC](https://discuss.elastic.co/t/problem-defining-instance-name-in-puppet-enterprise/83077/4 "2017-05-19T21:47:59Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
