Problem:
What’s the best way to set more complicated smart class parameter in Foreman.
I’m using the elasticsearch module and I want to use something like the following -
class { 'filebeat':
outputs => {
'logstash' => {
'hosts' => [
'localhost:5044',
'anotherserver:5044'
],
'loadbalance' => true,
},
},
}
now for setting a simple string I find it easy eg just set “logstash” but is it better to set the above code as array, yaml, json?
Expected outcome:
Use foreman to set filebeat.yml to use logstash on all RHEL hosts.
Foreman and Proxy versions:
1.16.0
Foreman and Proxy plugin versions:
Other relevant data:
Puppet Module imported into Foreman