Ask Your Question

Revision history [back]

There is no way to supply interactive input to a command invoked with an exec resource in your Puppet code. Assuming the answer to the question is either always "yes" or always "no", I suggest one of the following solutions:

  • Supply the answer via a command-line argument, if supported
  • Supply the answer by redirecting stdin to the command, if supported
  • In the worst case, you can use a tool like expect to interact with the command if the previous options are not available