puppetssh: add puppetssh_wait config option
Currently the puppetssh command is detached by default, followed by a return 0.
This causes issues when using The Foreman API to trigger a puppetrun from e.g. a deployment job in a CI system and directly calling a webtest job afterwards. The (spawned) puppetrun is still processing, while the webtests already kicked off.
Also, it makes it really hard to debug initial puppetssh setup issues, because no matter what happens, it immediately returns 0 (success) without any further notice.
Having a configuration option for this behaviour would be usefull.