1. try /bin/true or /usr/bin/yes 2. if you want to use it to install software like oracle or db2 or something, many of these have silence mode or response file, you should try this way first. 3. if the software you are going to install have rpm/deb packages, that would be better than others.
On Thursday, February 28, 2013 3:23:59 AM UTC+8, Corey Osman wrote: > > A friend of mine ask me this question and I stated puppet was only good > for sending commands and not interacting with the command line. I told him > to look for answer file support or a quite mode. > However, I suppose he could also run a expect script that could answer the > installer questions but this would be kinda complex for a beginner and not > the right approach in my opinion. > > Is there a puppet resource or function that could automate this solution? > Does puppet provide any expect like behavior? > > Question: > > I want to run and installer through an exec resource in Puppet. The > problem is that the installer prompts you for a yes or no to choose the > default path: > > Default directory for installation of products - /opt/ibm/db2/V10.1 > > *********************************************************** > Install into default directory (/opt/ibm/db2/V10.1) ? [yes/no] > > If I run this command through puppet, puppet never sends a yes and the > prompt ends up in a loop and never runs the installer. You know how to make > the exec resource send "yes" to the command line? > > > Thanks, > > Corey Osman > co...@logicminds.biz <javascript:> > > Green IT and Data Center Automation Specialist > > > > > > > -- You received this message because you are subscribed to the Google Groups "Puppet Users" group. To unsubscribe from this group and stop receiving emails from it, send an email to puppet-users+unsubscr...@googlegroups.com. To post to this group, send email to puppet-users@googlegroups.com. Visit this group at http://groups.google.com/group/puppet-users?hl=en. For more options, visit https://groups.google.com/groups/opt_out.