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: Kirk Bauer
Subject: Re: Variable substitution in class lists
Date: Sun, 25 Aug 2002 16:24:56 -0400 (EDT)

On Sun, 25 Aug 2002 Mark.Burgess@iu.hio.no wrote:

> 
> This would be very dangerous. And would be difficult to evaluate
> efficiently, so it is disallowed. Classes are separate to macros.
> 
> cfserver in your class is not even a valid class name,

cfserver expands to the hostname 'cfserver.mydomain.com', which is a
valid class name, right?  I currently have it working with this:

control:
   cfserver = ( cfserver.mydomain.com )

copy:
   !cfserver.mydomain.com::
       /etc/shadow  dest=/etc/shadow
                    mode=600
                    server=${cfserver}
                    encrypt=true
                    verify=true
      
But I don't like having the same configuration item (the name of the
cfserver) in the configuration file twice.






reply via email to

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