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.
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.
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?
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.
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?
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.
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?
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.
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.
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?
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.