On Wed, 20 Apr 2005, [EMAIL PROTECTED] wrote:

> Thanks for the response.  I would like to avoid adding groups to
> hosts that don't use/need them if at all possible.

That's what I was talking about as well :)

Here's an example of the cfperl syntax (users are done in a similar
way):

users:
 any::
# the group will be created if they don't exist
  group cftest gid =1500
 cluster::
# the group will be created if they don't exist
  group cluster gid =1600

etc. (the conditional logic is done with the cfengine "." and "|"
operators, plus parenthesis)

Also you can delete groups/users.

You can check if the group or user already exists in NIS or other
backends, so you don't add a local copy of a global group or user
too.

More details are at http://lifelogs.com/cfperl/manual.html#The%20users%20section

Ted


_______________________________________________
Help-cfengine mailing list
Help-cfengine@gnu.org
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to