Hi,

The best way for me is to store config files in different folders, rather than
different filename:
...repository.../host1/some_config_file
...repository.../host2/some_config_file

Then, on your "copy" statement, use the ${host} variable:
copy:

   ...repository.../${host}/some_config_file
   dest=/my/dest

It will copy the right config file to the right host.

          Greg

---------- Original Message -----------
From: "tekion" <[EMAIL PROTECTED]>
To: help-cfengine@cfengine.org
Sent: 22 May 2006 13:51:40 -0700
Subject: copy files with diff source and dest name...

> All,
> I have config files which differ by several lines. How can handle the
> distribution of these files with cfengine? I was thinking of having a
> few files with the following names:
> host1.some_config_file
> host2.some_config_file and so on...
> residing at the policy serer;  But when the file gets copy over, it
> will use host1.some_confi_file as the source and some_config_file as
> the dest; This goes the same with host2.some_config_file.  Is there a
> better way of handling this? If not, then would the suggested method
> above works.?
> 
> Thanks.
> 
> _______________________________________________
> Help-cfengine mailing list
> Help-cfengine@cfengine.org
> http://cfengine.org/mailman/listinfo/help-cfengine
------- End of Original Message -------

_______________________________________________
Help-cfengine mailing list
Help-cfengine@cfengine.org
http://cfengine.org/mailman/listinfo/help-cfengine

Reply via email to