help-cfengine
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Copy iterators and destinations


From: Chip Seraphine
Subject: Copy iterators and destinations
Date: Fri, 10 Oct 2003 09:58:58 -0500
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv:1.2.1) Gecko/20030121


I'm trying to use an iterator to copy a list of files, but I am unsure of how the syntax for the destination should look. I assumed that I would send them to a directory, but cfengine doesn't like that (2.0.6).

So how am I supposed to use an iterator to copy around a list of files?


control:
        x = ( filename1 )
        y = ( filename2 )
        xystring = ( "$(x):$(y)" )
        actionsequence = ( copy  )

copy:
        /tmp/$(xystring)        dest=/var/tmp/

cfengine:sausage: image exists but destination type is silly (file/dir/link doesn't match)
cfengine:sausage: source=/tmp/filename1, dest=/var/tmp
cfengine:sausage: image exists but destination type is silly (file/dir/link doesn't match)
cfengine:sausage: source=/tmp/filename2, dest=/var/tmp


/var/tmp/ is a valid directory (not a symlink).

Here's the -d2 output, but it doesn't say much more...

Actionsequence item copy
New server connection...
Checking copy from localhost:/tmp/filename1 to /var/tmp
Authentic connection verified
Directory for /var/tmp exists. Okay
CheckImage (source=/tmp/filename1 destination=/var/tmp)
ImageCopy(/tmp/filename1,/var/tmp,+0,-0)
IgnoredOrExcluded(/tmp/filename1)
file /var/tmp class any was not excluded
Destination file /var/tmp exists
cfengine:sausage: image exists but destination type is silly (file/dir/link doesn't match)
cfengine:sausage: source=/tmp/filename1, dest=/var/tmp
Checking copy from localhost:/tmp/filename2 to /var/tmp
Authentic connection verified
Directory for /var/tmp exists. Okay
CheckImage (source=/tmp/filename2 destination=/var/tmp)
ImageCopy(/tmp/filename2,/var/tmp,+0,-0)
IgnoredOrExcluded(/tmp/filename2)
file /var/tmp class any was not excluded
Destination file /var/tmp exists
cfengine:sausage: image exists but destination type is silly (file/dir/link doesn't match)
cfengine:sausage: source=/tmp/filename2, dest=/var/tmp
Closing current connection



Help would be appreciated.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]