Hi everyone,
I understand the problem and solved create the new subclass add_group and
calling it  from my  add_users with include (include 'users::add_group')

Thanks.


2014-05-28 13:39 GMT-04:00 jcbollinger <[email protected]>:

>
>
> 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 a topic in the
> Google Groups "Puppet Users" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/puppet-users/dRs5pGntL6c/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/puppet-users/2f2976f2-ef14-4b23-a8dc-97f1308847a1%40googlegroups.com
> <https://groups.google.com/d/msgid/puppet-users/2f2976f2-ef14-4b23-a8dc-97f1308847a1%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/puppet-users/CALkCwJDdySbfg5Gwnc6t_BOOWkC_xqKyqpBod579Eh0KeW7RPw%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to