Hi all,

This is most likely a noob question, so I apologize.  I've googled as well 
and was not able to find an answer to this seemingly basic question.
I'm using Puppet Enterprise 3.1.2 along with this module to install/manage 
Elasticsearch:  
https://forge.puppetlabs.com/elasticsearch/elasticsearch/0.2.3

I've added the elasticsearch class to my node definition, and when I try 
and pass the hash to the 'config' variable, my runs fail with various 
errors about the parameter being a string, not a hash.  

I've tried:

 class { 'elasticsearch':
   config                   => {
     'node'                 => {
       'name'               => 'elasticsearch001'
     },
     'index'                => {
       'number_of_replicas' => '0',
       'number_of_shards'   => '5'
     },
     'network'              => {
       'host'               => $::ipaddress
     }
   }
 }

and also:

config                   => {
     'node'                 => {
       'name'               => 'elasticsearch001'
     },
     'index'                => {
       'number_of_replicas' => '0',
       'number_of_shards'   => '5'
     },
     'network'              => {
       'host'               => $::ipaddress
     }
   }

and also:

{
     'node'                 => {
       'name'               => 'elasticsearch001'
     },
     'index'                => {
       'number_of_replicas' => '0',
       'number_of_shards'   => '5'
     },
     'network'              => {
       'host'               => $::ipaddress
     }

All result in something like this:

====================
Error: Could not retrieve catalog from remote server: Error 400 on SERVER: 
" config => { 'node' => { 'name' => 'elasticsearch001' }, 'index' => { 
'number_of_replicas' => '0', 'number_of_shards' => '5' }, 'network' => { 
'host' => $::ipaddress } }" is not a Hash. It looks to be a String at 
/etc/puppetlabs/puppet/modules/elasticsearch/manifests/init.pp:242 on node 
n6.example.com 

Warning: Not using cache on failed catalog 

Error: Could not retrieve catalog; skipping run
====================

How exactly would I pass a hash to this variable so that it will work?

Thanks so much.
Chris

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to puppet-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/248cb613-fac9-4b7e-9e39-316aa1a73dfb%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to