'localhost' is a special case of the copy functionality:

if ((strcmp(sourcefile,destfile) == 0) &&
(strcmp(ip->server,"localhost") == 0))
   {
   snprintf(OUTPUT,CF_BUFSIZE*2,"Image loop: file/dir %s copies to
itself",sourcefile);
   CfLog(cfinform,OUTPUT,"");
   return;
   }

You may have better luck connecting to the ip address of the host
instead of localhost (ie, 10.0.0.5 instead of 127.0.0.1). You may have
to use the -g option to ssh to allow this.

-Jason Martin
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On
Behalf Of Pletan, Ray
Sent: Friday, October 14, 2005 12:38 PM
To: [email protected]
Subject: Cfengine over ssh tunnel


Has anyone gotten cfengine working using ssh tunneling, i.e.
  ssh [EMAIL PROTECTED] -R 5308:localhost:5308 /var/cfengine/bin/cfagent -v
update.conf refuses to overwrite itself with messages such as:
  cf:cfengine::/var/cfengine/inputs/update.conf:54: Image loop: file/dir
copies to itself or missing destination file 


_______________________________________________
Help-cfengine mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-cfengine

Reply via email to