help-cfengine
[Top][All Lists]
Advanced

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

Re: Variable for server argument in copy command?


From: Ashton MacAndrews
Subject: Re: Variable for server argument in copy command?
Date: Mon, 6 Nov 2000 15:52:03 -0800
User-agent: Mutt/1.2.5i

Geary Boedeker <gearyb@amcc.com>:

> Ideally, I would like to have one "copy" statement, and
> merely *switch* the name of the server based on site.
> Has anyone done this? As always, am I missing something?

would you believe ...

copy:

    gold::
        /usr/local/cfengine/gold.copy
                dest=/usr/local/cfengine/silver.copy
                define=scratch

shellcommands:

    gold.scratch::
        '/usr/bin/sed "s/server=gold/server=silver/" gold.copy >silver.copy'


(No, I didn't think that you would ...)

-- 
'Programming is a Dark Art, and it will always be.'
- Damian Conway
- http://www.perl.com/pub/2000/08/conway.html?wwwrrr_rss



reply via email to

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