On Friday, September 19, 2014 3:45:17 PM UTC-5, Kimo Rosenbaum wrote:
>
> Hello,
>
> I'm using puppet 3 with roles (mostly), profiles, and Hiera. I have a 
> profile setup (for pdxcat/collectd) to, amongst other things, hiera_array() 
> for values [of localports] to pass on to collectd::plugin::tcpconns. 
> Defining everything in hiera files works as expected. However, I would like 
> to add to those values from other profiles. But I haven't been able to get 
> that working. Any suggestions?
>
>

I don't think its possible to approach the problem as you are trying to 
do.  Even if you could, you shouldn't create cross-profile dependencies 
like you are trying to do.  Instead, it is the job of the role to provide 
everything needed to integrate all the profiles.  You could do it via the 
role class instead of in Hiera, however.  That makes sense to me, because 
the role classes are where the information of which profiles are involved 
is stored.

Perhaps you could add a parameter to profiles::collectd by which the role 
can provide the needed data, which it would assemble from class variables 
of the profile classes.


John

-- 
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/72363009-bd6c-41b8-8c2a-5e97826df44b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to