Brian C. Hill wrote: > Hello, > > I want to copy some specific files to a jumpstart root. >Since cfengine will only do file->file dir->dir, this does not >seem possible to do with cfengine in one short statement as it >is with rsync, rdist, find/cpio, tar, etc.. > > Here is a short example: > > source files: > > /etc/ssh/sshd_config > /etc/init.d/sshd > /usr/openssh > /var/empty > > dest: > > /jumpstart/bootstrap/etc/ssh/sshd_config > /jumpstart/bootstrap/etc/init.d/sshd > /jumpstart/bootstrap/usr/openssh > /jumpstart/bootstrap/var/empty > > With rsync, rdist, etc..: > > $(file) -> /jumpstart/bootstrap > > With cfengine, it seems that 4 copy statements are needed. In >the real case, I have about 20 files to copy (not just the 4 above) > > Am I missing a shortcut here? > >Brian >_______________________________________________ >Help-cfengine mailing list >Help-cfengine@cfengine.org >http://cfengine.org/mailman/listinfo/help-cfengine > > I think r=inf is what you are after for recursion:
copy: ${source_directory} dest=/jumpstart/bootstrap/ r=inf Is that what you mean? Cheers Dax _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org http://cfengine.org/mailman/listinfo/help-cfengine