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

-- 
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/819414e1-2f5e-4aa8-84e1-0f1e9b79e66c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to