help-cfengine
[Top][All Lists]
Advanced

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

Re: groups/classes


From: Mark . Burgess
Subject: Re: groups/classes
Date: Wed, 16 Jan 2002 08:44:59 +0100 (MET)

On 16 Jan, Daniel Nilsson wrote:
> 
> Hi!
> 
> I want to define a group/class if another group/class is active, like:
> 
> groups:
> 
>   site1::
>     bootservers = ( host1 host2 host3 )
> 
>   site2::
>     bootservers = ( host4 host5 host6 )
> 
> 
> I get syntax error. Why should "groups" be different than the other
> actions?
> 
> Regards
> 
>   Daniel


This is disallowed because it can be a meaningless construction, 
e.g. using groups within groups before they have been defined etc.
You can get around it in two ways: 


bootservers = ( host1.site1 host2.site1 ... host4.site2 ... )

etc using the AND sign "."

or you can keep a separate file for each site and import
the appropriate one based on a group defined "higher up".

Mark

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Work: +47 22453272            Email:  address@hidden
Fax : +47 22453205            WWW  :  http://www.iu.hio.no/~mark
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~





reply via email to

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