# cfengine 2 configuration to create a file, link to it, then replace # the link with the real file. # # Usage: # cfagent -qKf `pwd`/thisfilename # # $Id$ control: any:: actionsequence = ( files links copy ) pwd = ( ExecResult(/bin/pwd) ) realfile = ( real ) linkfile = ( link ) files: any:: ${pwd}/${realfile} mode=0600 action=touch inform=true links: any:: ${pwd}/${linkfile} -> ${pwd}/${realfile} inform=true copy: any:: ${pwd}/${realfile} dest=${pwd}/${linkfile} inform=true backup=false typecheck=false