help-cfengine
[Top][All Lists]
Advanced

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

defining vars based on groups


From: Will Lowe
Subject: defining vars based on groups
Date: Mon, 20 Jan 2003 14:49:06 -0800
User-agent: Mutt/1.4i

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?

-- 
                                        thanks,
                
                                        Will




reply via email to

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