Hello,
I have the following construct
class profile::icinga2::agent (
String $monitoring_host = "mon-01.example.com",
String $monitoring_ip = "192.168.1.1",
){
...
@@::icinga2::object::host { $::fqdn:
display_name => $::fqdn,
address => $::ipaddress,
check_command => 'hostalive',
vars => hiera_hash('icinga_vars', {} ),
target => "/etc/icinga2/zones.d/master/${::fqdn}.conf"
}
...
}That works fine, to get my values out my hieradata/common.yaml. Now I need to extend the variable "vars" with:
...
vars => {
puppet_classes => inline_template ('<%= classes.sort.join(" ") %>'),
},How can I get both in "vars" ?
cu denny