Hi Ted,

When you say:

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

Where does the the group 'cftest' /w gid 1500 get registered?

Regards,
         /\/elson


On Wed, 20 Apr 2005, Ted Zlatanov wrote:

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


-- ~~ ** ~~ If you didn't learn anything when you broke it the 1st ~~ ** ~~ time, then break it again.


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

Reply via email to