On Dec 9, 5:47 pm, Alexander Swen <[email protected]> wrote:
> > Nevertheless, if it's more important just to make it work right now,
> > then class users::beheerserver can override the $functie property of
> > the users::account instances it collects, like so:
>
> > Users::Account <| (othergroups == 'pep' or othergroups ==
> > 'healthcare') |> {
> >   functie => "${functie}"
> > }
>
> ahhh, now I understand how to pass on a param while realizing!
> thanks!


You are welcome, but it is very important to understand that that
syntax does not _pass_ a parameter / property.  It _overrides_ an
existing property of the already-declared virtual resource (which
could as easily be of a native type).  The distinction is a bit
subtle, but you will run into trouble if you are not mindful of it.
Notably, if you override properties when you collect a resource then
you can collect it only once; otherwise you can collect it any number
of times.


John

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-users?hl=en.

Reply via email to