Ask Your Question

Revision history [back]

Puppet is not designed to run interactivly and therefore puppet takes care that your script will not block for user input. Technically puppet redirects STDIN (which is your terminal/keyboard by default) to read from from the pseudo file NUL (or /dev/null on linux)

So to answer your question

Do I have to pass any additional parameters for the batch file to become interactive?

no, because it is simply not possible.

A script that you specify in an exec resource should be a tool to migrate to a specific desired state (which puppet should be able to verify), so if you could explain a bit more what you are trying to accomplish, then we might find a better way to do it (like an answer file or something if it is an installation script)