Say that a puppet agent is in the middle of a refresh and I stop the puppet master service. Is there any point that it would potentially cause an incomplete or corrupt setup to be pushed out like I describe below?
Background:
I'm using continuous integration and version control (Bamboo and Stash) for my puppet config files.
I've run into issues that during the redeployment process. It is most noticeable when I do a pull request for my production branch but it occurs elsewhere as well. A puppet agent may be trying to access a resource file that has been deleted before it has been pushed back out. Although quite rare this has caused havoc of all kinds, especially in modules that use a file statement to push out an entire directory.
The most sensible thing I've come up with would be to stop the puppet master service for the duration of the deploy and then kick it back on but I'm not seeing anything about the ramifications of stopping the puppetmaster while it may still be being used.