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