Multiple instances created in provisioning script

Zaid Abdulla zaid at genieacs.com
Thu Mar 9 18:50:38 EST 2017


On Thu, 2017-03-09 at 14:31 -0900, Dan Morphis wrote:
> Another question, how do I prevent a provision from being executed
> multiple times? I created a provision to exec on 1 BOOT, and it
> executed 4 times very quickly before being stopped by the
> endless_cycle check.

In short, you can't. The provisions will be executed repeatedly until
they result in no configuration change. You can utilize tags to
maintain a state to ensure a provision is only applied once, but in my
opinion that should be a last resort if you cannot make your provisions
stateless.

-- 
Zaid Abdulla <zaid at genieacs.com>


More information about the Users mailing list