On Wednesday, May 28, 2014 5:20:19 AM UTC-5, Jose Luis Ledesma wrote:
>
> The problem is that you have more than one user in the same group, so you 
> are declaring the same group more than one time.
>

Yes.

 

> The solution could be make use of virtual resources for your groups and 
> realize them when needed
>

Yes.

Alternatively, create a separate list of required groups in your data, and 
manage those concretely, in a class.  Have your users::add_user definition 
'include' that class, or even 'require' it.

 

> , or make use of the "evil" defined function.
>

Not so easy in this case, even if defined() weren't evil, because there may 
be multiple secondary groups.  Probably that could be handled with the help 
of the future parser, but that's still experimental.


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/2f2976f2-ef14-4b23-a8dc-97f1308847a1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to