Knife ec2 instance creation


#1

Hi

I am trying to create an instance using Ec2 instance and also want to give
inputs (through cookbook) using ruby gets.chomp.

Ec2 instance created and cookbooks uploaded n the client . its not allowing me
to give input through cookbook.

Is there any way can i give user inputs through cookbook from chef server?


#2

Are you saying you are trying to prompt for interactive input in a Chef recipe? That somewhat defeats the point of automation :slight_smile: If you want to provide varying parameters you should probably set them up as node attributes either on the node itself or better yet in roles.

–Noah

On Jul 27, 2011, at 2:30 PM, mani@moofwd.com wrote:

Hi

I am trying to create an instance using Ec2 instance and also want to give
inputs (through cookbook) using ruby gets.chomp.

Ec2 instance created and cookbooks uploaded n the client . its not allowing me
to give input through cookbook.

Is there any way can i give user inputs through cookbook from chef server?