LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   cfengine - copy directories (https://www.linuxquestions.org/questions/linux-software-2/cfengine-copy-directories-716104/)

crofty13 04-01-2009 12:00 PM

cfengine - copy directories
 
I have been using cfengine for a few years and its great. The one problem I have with it is copying entire directories. normally I have to add each file individually like this to the cf.input file:

redhat.ipv4_192_168_9:: # IT segment
${dist}/etc/yp.conf
dest=/etc/yp.conf
mode=0444
owner=root
group=root
define=reload_ypbind_config
server=${cfmaster}
encrypt=true

I now want to distribute my Nagios client which is a directory filled with 50 files and subdirectories.

Is there a way to tell cfengine to copy the directory and its contents in it entirety without specifying each one?


All times are GMT -5. The time now is 03:32 PM.