help-cfengine
[Top][All Lists]
Advanced

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

Re: defining vars based on groups


From: Mark . Burgess
Subject: Re: defining vars based on groups
Date: Tue, 21 Jan 2003 08:10:43 +0100 (MET)

This should work fine. Are you sure there isn't just a simple
typo somewhere?

M

On 20 Jan, Will Lowe wrote:
> I have a config that's sorta like this:
> 
> import:
>       FarmA.conf
>       FarmB.conf
>       apache.conf
> 
> Where FarmA and FarmB both run Apache (and define an "apache" class)
> but have different configs.  "apache.conf" does this:
> 
> copy:
>       apache::
>               $(groupsrc)/etc/apache
>                       dest=/etc/apache
>                       recurse=inf
>                       define=apache_restart
> 
> shellcommands:
>       apache_restart::
>               "/usr/sbin/apachectl restart"
> 
> The idea is to have $(groupsrc) be different for FarmA  than
> for FarmB.  So I tried doing this in FarmA.conf:
> 
> control:
>       FarmA::
>               groupsrc = ( /cfengine/FarmA )
> 
> and this in FarmB.conf:
> 
> control:
>       FarmB::
>               groupsrc = ( /cfengine/FarmB )
> 
> 
> ... but it always picks up the FarmB settings.  Is there any way to do
> this -- define a variable based on a group?
> 



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






reply via email to

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