Ask Your Question

User input for a shell script

asked 2015-12-02 03:17:24 -0500

puppet_learner gravatar image


Please provide any pointers if this has been answered before as I couldn't get any with search.

I have just started with puppet for auto-installation of my software. Basically software has a setup script which requires user input while installing. I read about answer file but don't have any idea as to how I can use that to my purpose as the puppet document lists it under installing puppet enterprise. Is there any other option with which I can provide input?

Please let me know if I have missed out on any other detail.


edit retag flag offensive close merge delete

3 answers

Sort by ยป oldest newest most voted

answered 2015-12-02 08:26:52 -0500

ideally I'd like to see the software in a package(e.g. rpm/deb) and install it that way. if that cant be done try it with an answer file - obviously you need to know what answers to give it!

e.g. cat answers.txt`


assuming yes /no/fred are the answers to the programs question here -obviously you need to fill those in.

then you can run your program as:

yourprogram < answers.txt

try this from the command line first and then could run from an exec in a puppet module..

Best wishes Stuart

edit flag offensive delete link more

answered 2015-12-02 19:53:22 -0500

lavaman gravatar image

Puppet does not support doing things interactively. An answer file (or response file as it is also known) is a general concept supported by many installers. The process here is to figure out first how to install your app non-interactively, then replicate those steps in puppet. How/whether this is possible is completely dependent on the particular application you are installing.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-12-02 03:17:24 -0500

Seen: 442 times

Last updated: Dec 02 '15