[chef] Re: Re: Re: Re: Popup menu through chef


Chronological Thread 
  • From: Sachin Gupta < >
  • To:
  • Subject: [chef] Re: Re: Re: Re: Popup menu through chef
  • Date: Mon, 22 Sep 2014 23:26:55 +0530

Hi Keeneth,

Script is written in batch. I  think  through chef we can pass specific parameter either through json, or pass through role defined or through attribute file. but if the case is with dynamic selection of parameter by user, then how to archive??

I am just thinking to pass a popup menu code as a file  and then calling that menu code through chef, but this will not work as chef will run the code without any intervention,

do you have any idea how to enable dynamic selection in such popup scripts ..


Thanks & Regards,
Sachin Kumar
 


On Mon, Sep 22, 2014 at 9:33 PM, Kenneth Barry < " target="_blank"> > wrote:
Maybe you need to adjust/rework the script to run silently?, or accept command line arguments, not in a popup?
What is the script written in now? Batch, Powershell?

On Mon, Sep 22, 2014 at 6:19 AM, Sachin Gupta < " target="_blank"> > wrote:
Thanks Andy,

Actually we have a windows script which has an option of Popup for accepting user option dynamically  and we want to convert that script to some chef recipe.

Yes we can pass the user arguments through json attributes.


Thanks & Regards,
Sachin Kumar

On Mon, Sep 22, 2014 at 6:40 PM, Andy Gale < " target="_blank"> > wrote:
Sachin,

Although it would be possible to do it with ruby, it would be
inadvisable as Chef is really intended to be run without intervention.
Have the users set the required options using JSON attributes when
chef solo or chef-client command is run.

Cheers,

Andy



On Mon, Sep 22, 2014 at 1:11 PM, Sachin Gupta
< " target="_blank"> > wrote:
> Hi All,
>
> Would like to know whether we can have popup type menu through chef recipe
> which can dynamically accept the user selection.
>
> I know we can pass arguments either through json or attribute, but can we
> also achieve this through any popup menu/?
>
>
> Regards,
> Sachin



--
Andy Gale
http://andy-gale.com
http://twitter.com/andygale




--

Kenneth Barry 

TuneIn | Build and Release Engineer
M: 409-673-0544




Archive powered by MHonArc 2.6.16.

§