Forum: Cfengine Help Subject: Re: Input directory change mid-run Author: megamic Link to topic: https://cfengine.com/forum/read.php?3,18741,18754#msg-18754
dan Wrote: ------------------------------------------------------- > I'm not suggesting doing it by hand. I'm wondering > if there's a race condition between running 'svn > update' in your working directory agents pull > from, and running cfagent on a client. Could doing > these at the same time cause the agent to only get > part of the new revision? I deploy my masterfiles to all hosts as Solaris packages through a corporate release process (i.e. no policy host). I have also been concerned about a similar scenario, mainly what would happen if cf-agent ran while the package was only partially installed - or if the package started to be removed mid-way through a cf-agent run. I do 2 things to mitigate this concern: 1) Get cf-agent to check for the "fully installed" package before running - and set an abortclass class if it is not. 2) Use a pre-remove script inside the package itself to check if cf-agent is running - aborting the package remove if it is. You may want to use similar concepts in dealing with subversion (pre-update hooks?) to prevent the repo being updated if cf-agent is running. Cheers _______________________________________________ Help-cfengine mailing list Help-cfengine@cfengine.org https://cfengine.org/mailman/listinfo/help-cfengine