help-cfengine
[Top][All Lists]
Advanced

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

Re: Platform string


From: Jeff Wasilko
Subject: Re: Platform string
Date: Mon, 8 Sep 2003 14:43:21 -0400
User-agent: Mutt/1.3.99i

On Mon, Sep 08, 2003 at 02:40:02PM -0400, Ferguson, Steve wrote:
> I don't know how I can take those classes and insert them in a string.  I
> need something I can declare in a variable.  I'm using it something like
> this in update.conf:
> 
>   master_binaries = ( /var/cfengine/master/binaries/$(arch) )
> 
>   # Update important binaries
>   $(master_binaries)/cfagent    dest=$(workdir)/bin/cfagent
>                                 mode=0755
>                                 backup=false
>                                 type=checksum
>                                 server=$(policyhost)
> 
> I know that the classes you mentioned are defined, but not how to get those
> tokens in place of $(arch).

this is how I assign classes to a variable:

        SiteBedfordDMZ:: site   = ( SiteBedfordDMZ )
        SiteTulsa::      site   = ( SiteTulsa )
        SiteBedford::    site   = ( SiteBedford )
        
        # set up change management pathname variable
        
        cm_100:: cm             = ( cm_100 )
        cm_200:: cm             = ( cm_200 )
        cm_300:: cm             = ( cm_300 )
        cm_400:: cm             = ( cm_400 )
        cm_500:: cm             = ( cm_500 )





reply via email to

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