diogoleal

Error upload file cfengine

Dec 11th, 2013
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.77 KB | None | 0 0
  1. body common control
  2. {
  3. bundlesequence => { "mycopy" };
  4. inputs => { "/var/cfengine/inputs/libraries/cfengine_stdlib.cf" };
  5. inputs => {"/var/cfengine/inputs/lib/3.5/files.cf"};
  6. }
  7.  
  8. bundle agent mycopy
  9. {
  10.  
  11. vars:
  12. "files" slist => { "/root/file", "/root/file2", "/root/file3" };
  13.  
  14. files:
  15. "$(files)"
  16. copy_from => secure_cp("$(files)", "200.187.79.205");
  17. }
  18.  
  19.  
  20. Error:
  21.  
  22.  
  23. [root@cfengine ~]# cf-agent -KI --file ./copia.cf
  24. 2013-12-11T17:29:08-0200 info: /mycopy/files/'$(files)': Can't stat '/root/file' in files.copyfrom promise
  25. 2013-12-11T17:29:08-0200 info: /mycopy/files/'$(files)': Can't stat '/root/file2' in files.copyfrom promise
  26. 2013-12-11T17:29:08-0200 info: /mycopy/files/'$(files)': Can't stat '/root/file3' in files.copyfrom promise
Advertisement
Add Comment
Please, Sign In to add comment