help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Local groups


From: David E. Nelson
Subject: Re: Local groups
Date: Wed, 20 Apr 2005 13:47:02 -0500 (CDT)


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, david.nelson@ni.com 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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]