Re: copy only if file does not exist

2011-11-18 Thread Evuraan
> you could negate the FileExists(file) function > (http://cfengine.com/manuals/cf2-Reference.html#FileExists). > > untested example: > > classes: >       missingfile = ( !FileExists(/path/to/file) ) > > copy: >      missingfile:: >            source >            dest thank you! __

copy only if file does not exist

2011-11-18 Thread Evuraan
greetings! running cfengine2, I wanted to know if i can copy a file only if it does not exist. sort of : [ -s myfile ] || cp someotherfile myfile I *can* do this in a "shellcommands" thingy, but I wanted to know whether I can do this within a "copy". the closest i could find is the "type" ma

how to find key mis-match?

2010-07-01 Thread Evuraan
Connect to cf-master = on port 5308 cfengine:cf-client: BAD: keys did not match cfengine:cf-client: Authentication dialogue with cf-master failed cfengine:cf-client: Unable to establish connection with cf-master (failover) a few of my cfengine clients seem to have key mis-matches. whats the best