help-cfengine
[Top][All Lists]
Advanced

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

Re: Variable substitution in class lists


From: Hugo Gayosso
Subject: Re: Variable substitution in class lists
Date: 27 Sep 2002 13:12:09 -0400
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Kirk Bauer <kirk@kaybee.org> writes:

> It seems that this is not legal:
> 
> control:
>    domain          = ( mydomain.com )
>    cfserver        = ( cfserver.mydomain.com )
> 
> copy:
>    !${cfserver}::
>       /etc/shadow  dest=/etc/shadow
>                    mode=600
>                    server=${cfserver}
>                    encrypt=true
>                    verify=true
> 
> It would be nice if this was possible... am I missing something?  Is this a
> feature that has been considered?

[...]

What I do is instead of defining a variable in "control", I define the
server in "groups" (even though it is only one server), then I can do:

groups:
   NISmasters = ( myNISmasterhost )

copy:
  !NISmasters::
        /etc/shadow .......blah blah



- -- 
Hugo Gayosso
Support the Free Software Movement!
GNU Project <http://www.gnu.org>
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9lJFpx2JZtTN6co8RAvtmAKDdQAYpNBYTNP8sFxMiX7ZynKuGygCg9TRg
HPHlOfxHA18JWW1B1QxkwfI=
=GjSi
-----END PGP SIGNATURE-----




reply via email to

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