chef-infracookbook

Chef Cookbook Recipe action to agree end user License agreement and automate an Installation process


I am a newbie to chef, need some inputs on writing a recipe for allowing the actions that needs user input like "Press 1 to continue", "2 to quit", "3 to redisplay" else an option to do the force continue.

In detail,below are the installation steps that I am trying to automate using chef cookbook.

Would be great if anyone can help with some reference links or inputs on how to pass the inputs throughout the automated installation.

Thanks in advance.


Solution

  • Having a bash command "yes 1 | java -jar rhdm-installer-7.7.0.jar -console" in the recipe did the work. Thanks