Prototype of a finite state machine in puppet.