Popup menu through chef

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

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
guptasachin1112mrt@gmail.com 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://twitter.com/andygale

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 andy@salgo.net 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
guptasachin1112mrt@gmail.com 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

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 guptasachin1112mrt@gmail.com
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 andy@salgo.net 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
guptasachin1112mrt@gmail.com 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

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 kbarry@tunein.com 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 <
guptasachin1112mrt@gmail.com> 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 andy@salgo.net 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
guptasachin1112mrt@gmail.com 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
www.tunein.com

I am not sure how/if thats possible (responding to a popup window from a
single commandline argument)

I would seriously consider re-working the batch file.

On Mon, Sep 22, 2014 at 10:56 AM, Sachin Gupta <guptasachin1112mrt@gmail.com

wrote:

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 kbarry@tunein.com 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 <
guptasachin1112mrt@gmail.com> 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 andy@salgo.net 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
guptasachin1112mrt@gmail.com 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
www.tunein.com

--

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

to automate installations of tools that has TUI based popups
(interactive...) its common to use expect . some tool are non-interactive
installation aware, i.e. they support passing some arguments (like apt, ..
). most windows tools also provides something similar. Its much easier to
maintain the automation suite that way.

functional testing tools for that platform (like silk, selenium, twist etc)
can also automate GUI popups. So if i have to take that route, and pass
some parameters to a GUI based element, i'll write some of those scripts
and wrap it inside a lwrp/hwrp. but this will involve some coding, and the
resulting suite can be brittle ..
regards
ranjib

On Mon, Sep 22, 2014 at 11:15 AM, Kenneth Barry kbarry@tunein.com wrote:

I am not sure how/if thats possible (responding to a popup window from a
single commandline argument)

I would seriously consider re-working the batch file.

On Mon, Sep 22, 2014 at 10:56 AM, Sachin Gupta <
guptasachin1112mrt@gmail.com> wrote:

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 kbarry@tunein.com 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 <
guptasachin1112mrt@gmail.com> 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 andy@salgo.net 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
guptasachin1112mrt@gmail.com 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
www.tunein.com

--

Kenneth Barry
TuneIn | Build and Release Engineer
M: 409-673-0544
www.tunein.com