[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: defining vars based on groups
From: |
Hugo Gayosso |
Subject: |
Re: defining vars based on groups |
Date: |
21 Jan 2003 10:12:48 -0500 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.2 |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Will Lowe <harpo@thebackrow.net> writes:
> I have a config that's sorta like this:
>
> import:
> FarmA.conf
> FarmB.conf
> apache.conf
> control:
> FarmA::
> groupsrc = ( /cfengine/FarmA )
I can do this.
control:
# Paths were the initialization scripts are located.
redhat_7:: RH_init_path = ( /etc/init.d )
redhat_6:: RH_init_path = ( /etc/rc.d/init.d )
> ... but it always picks up the FarmB settings. Is there any way to do
> this -- define a variable based on a group?
Another option is that FarmA only imports 'FarmA.conf' and
'apache.conf', and FarmB only imports 'FarmB.conf' and 'apache'. And
inside Farm?.conf file you have the right 'control:' statement.
- --
Hugo Gayosso
Support the Free Software Movement!
GNU Project <http://www.gnu.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)
iD8DBQE+LWNwx2JZtTN6co8RAn2BAKDT52FY3J9Veh0feAks6cu+JLKvkQCfYizc
Mk6ra1OR5rNfIUqDMcvxGMw=
=bnHt
-----END PGP SIGNATURE-----